From 2d66971e1777c0bc7659931bf41c76b5462909b5 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 9 Jun 2019 18:23:19 +0800 Subject: [PATCH] test --- bot.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.go b/bot.go index 04a3ae5..dddd591 100644 --- a/bot.go +++ b/bot.go @@ -264,7 +264,6 @@ func botMsgLoad(m *tb.Message) { if !m.Private() { return } - log.Printf("Message Load\n") if m.ReplyTo != nil { r := m.ReplyTo if r.Document != nil { @@ -285,8 +284,10 @@ func botMsgLoad(m *tb.Message) { FromChatID64: m.Chat.ID, } TGCmdQueue <- c + log.Printf("Getting file !\n") r, err := b.GetFile(&f) logOnError(err, "botMsgLoad : GetFile") + log.Printf("Reading file !\n") buf := new(bytes.Buffer) n, err := buf.ReadFrom(r) logOnError(err, "botMsgLoad : ReadFrom")