From 154715b9b7ab65314b909f3cef062ba5bde862cc Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 12 Oct 2019 17:29:19 +0800 Subject: [PATCH] update --- bot.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/bot.go b/bot.go index 11f98fd..3b3bbec 100644 --- a/bot.go +++ b/bot.go @@ -99,6 +99,20 @@ func botQuery(q *tb.Query) { func botText(m *tb.Message) { fmt.Println("botText :", m.Text) PrintText(m) + b, _ := json.Marshal(p) + log.Printf("botText : %s\n", string(b)) + + /* + if (m.Chat.ID == cfg.Bot.Depositchat && int64(m.OriginalSender) == 408101137) { + cwm := ChatWarsMessage{ + TGUserID64: int64(m.Sender.ID), + TGSenderUserID64: int64(m.OriginalSender), + ID64: int64(m.ID), + ChatID64: updateMsg.Message.ChatID, + Text: txt, + } + } + */ // all the text messages that weren't // captured by existing handlers }