This commit is contained in:
shoopea 2019-06-09 18:03:23 +08:00
parent dbc9bc7dc5
commit 2caf63b36d

6
bot.go
View File

@ -287,7 +287,7 @@ func botMsgLoad(m *tb.Message) {
TGCmdQueue <- c
r, err := b.GetFile(&f)
logOnError(err, "botMsgLoad : GetFile")
c := TGCommand{
c = TGCommand{
Type: commandReplyMsg,
Text: "File downloaded ?",
FromMsgID64: int64(m.ID),
@ -295,7 +295,7 @@ func botMsgLoad(m *tb.Message) {
}
TGCmdQueue <- c
if f.OnDisk() {
c := TGCommand{
c = TGCommand{
Type: commandReplyMsg,
Text: "Yes !",
FromMsgID64: int64(m.ID),
@ -303,7 +303,7 @@ func botMsgLoad(m *tb.Message) {
}
TGCmdQueue <- c
} else {
c := TGCommand{
c = TGCommand{
Type: commandReplyMsg,
Text: "No !",
FromMsgID64: int64(m.ID),