From 3de73d458bff4452568c91cbc0d10f0e649a8560 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 9 Jun 2019 18:05:54 +0800 Subject: [PATCH] test --- bot.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ?",