From 328931f97c543c685e685ef0dacb1524b9ad9577 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 29 Dec 2019 18:58:20 +0800 Subject: [PATCH] test --- bot.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bot.go b/bot.go index ca257c6..9a632db 100644 --- a/bot.go +++ b/bot.go @@ -101,6 +101,9 @@ func botQuery(q *tb.Query) { func botText(m *tb.Message) { PrintText(m) + log.Printf("botText : m.Chat.ID : %d\n", m.Chat.ID) + log.Printf("botText : m.OriginalSender.ID : %d\n", m.OriginalSender.ID) + if (m.Chat.ID == cfg.Bot.Depositchat || m.Chat.ID == cfg.Bot.Mainchat) && int64(m.OriginalSender.ID) == chtwrsbotID64 { log.Printf("botText : forwarding message.\n") cwm := ChatWarsMessage{