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