diff --git a/bot.go b/bot.go index 7b3b4d6..bf41c82 100644 --- a/bot.go +++ b/bot.go @@ -285,6 +285,33 @@ func botMsgLoad(m *tb.Message) { FromChatID64: m.Chat.ID, } TGCmdQueue <- c + r, err := b.GetFile(d.File) + logOnError(err, "botMsgLoad : GetFile") + c := TGCommand{ + Type: commandReplyMsg, + Text: "File downloaded ?", + FromMsgID64: int64(m.ID), + FromChatID64: m.Chat.ID, + } + TGCmdQueue <- c + if d.File.OnDisk() { + c := TGCommand{ + Type: commandReplyMsg, + Text: "Yes !", + FromMsgID64: int64(m.ID), + FromChatID64: m.Chat.ID, + } + TGCmdQueue <- c + } else { + c := TGCommand{ + Type: commandReplyMsg, + Text: "No !", + FromMsgID64: int64(m.ID), + FromChatID64: m.Chat.ID, + } + TGCmdQueue <- c + } + } else { c := TGCommand{ Type: commandReplyMsg,