test
This commit is contained in:
parent
85fa235399
commit
ede5a70ebc
27
bot.go
27
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,
|
||||
|
Loading…
Reference in New Issue
Block a user