This commit is contained in:
shoopea 2020-01-25 19:28:12 +08:00
parent 1af69dac64
commit 8e8abe0fb1

View File

@ -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