diff --git a/bot.go b/bot.go index 928dd8f..cde628d 100644 --- a/bot.go +++ b/bot.go @@ -4,6 +4,7 @@ import ( "bytes" "encoding/json" "fmt" + "ioutil" "log" "regexp" "strconv" @@ -285,8 +286,9 @@ func botMsgLoad(m *tb.Message) { FromChatID64: m.Chat.ID, } TGCmdQueue <- c - _, err := b.GetFile(&f) + r, err := b.GetFile(&f) logOnError(err, "botMsgLoad : GetFile") + _, err := ioutil.ReadAll(r.Body) c = TGCommand{ Type: commandReplyMsg, Text: "File downloaded ?",