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")