From 8e8abe0fb1899fda77062476a61e31a163aaf98b Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 25 Jan 2020 19:28:12 +0800 Subject: [PATCH] test --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 47c8edd..735c49c 100644 --- a/main.go +++ b/main.go @@ -379,9 +379,9 @@ func ListenDarkwing(c *tdlib.Client) { func ListenGuild(c *tdlib.Client) { eventFilter := func(msg *tdlib.TdMessage) bool { updateMsg := (*msg).(*tdlib.UpdateNewMessage) - msg := updateMsg.Message - chatID := msg.ChatID - msgType := msg.Content.GetMessageContentEnum() + m := updateMsg.Message + chatID := m.ChatID + msgType := m.Content.GetMessageContentEnum() // senderUserID := updateMsg.Message.SenderUserID if chatID == chat_guild && msgType == tdlib.MessageTextType { return true