test
This commit is contained in:
parent
1cae638163
commit
6daf286b97
17
bot.go
17
bot.go
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user