test sanitizing

This commit is contained in:
shoopea 2020-04-22 13:31:51 +08:00
parent 8e8abe0fb1
commit f871f68a25

View File

@ -381,11 +381,14 @@ func ListenGuild(c *tdlib.Client) {
updateMsg := (*msg).(*tdlib.UpdateNewMessage)
m := updateMsg.Message
chatID := m.ChatID
if m.Content != nil {
msgType := m.Content.GetMessageContentEnum()
// senderUserID := updateMsg.Message.SenderUserID
if chatID == chat_guild && msgType == tdlib.MessageTextType {
return true
}
}
return false
}