From 6daf286b97368f7ccba55fd7c266731db6f87463 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 9 Jun 2019 16:56:52 +0800 Subject: [PATCH] test --- bot.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 }