From c8dee001d41f5a29b872e58c6a500e3705d41b9b Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 25 Jan 2020 19:25:27 +0800 Subject: [PATCH] test --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 9d1d75f..c2c2bcb 100644 --- a/main.go +++ b/main.go @@ -381,7 +381,7 @@ func ListenGuild(c *tdlib.Client) { updateMsg := (*msg).(*tdlib.UpdateNewMessage) chatID := updateMsg.Message.ChatID // senderUserID := updateMsg.Message.SenderUserID - if chatID == chat_guild { + if chatID == chat_guild && updateMsg.MessageContent.GetMessageContentEnum() == tdlib.MessageTextType { return true } return false