This commit is contained in:
shoopea 2019-06-09 16:56:52 +08:00
parent 1cae638163
commit 6daf286b97

17
bot.go
View File

@ -263,6 +263,23 @@ func botMsgLoad(m *tb.Message) {
if !m.Private() {
return
}
if m.ReplyTo != nil {
c = TGCommand{
Type: commandReplyMsg,
Text: `Message found.`,
FromMsgID64: int64(m.ID),
FromChatID64: m.Chat.ID,
}
TGCmdQueue <- c
} else {
c = TGCommand{
Type: commandReplyMsg,
Text: `You need to reply to the message with the backup.`,
FromMsgID64: int64(m.ID),
FromChatID64: m.Chat.ID,
}
TGCmdQueue <- c
}
return
}