From 51e07339a01747a2272b344cae77eb0f1855d614 Mon Sep 17 00:00:00 2001 From: shoopea Date: Mon, 21 Oct 2019 10:26:06 +0800 Subject: [PATCH] typo --- bot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.go b/bot.go index 31d9697..c284b04 100644 --- a/bot.go +++ b/bot.go @@ -103,7 +103,7 @@ func botText(m *tb.Message) { b, _ := json.Marshal(m) log.Printf("botText : %s\n", string(b)) - if (m.Chat.ID == cfg.Bot.Depositchat || m.Chat.ID == cfg.Bot.Mainchat) && int64(m.OriginalSender) == chtwrsbotID64 { + if (m.Chat.ID == cfg.Bot.Depositchat || m.Chat.ID == cfg.Bot.Mainchat) && int64(m.OriginalSender.ID) == chtwrsbotID64 { cwm := ChatWarsMessage{ TGUserID64: int64(m.Sender.ID), TGSenderUserID64: chtwrsbotID64,