diff --git a/bot.go b/bot.go index 339bb94..17cc101 100644 --- a/bot.go +++ b/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 }