This commit is contained in:
shoopea 2019-06-09 18:01:45 +08:00
parent 85fa235399
commit ede5a70ebc

27
bot.go
View File

@ -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,