Ignore biz chats
This commit is contained in:
parent
63394087fe
commit
9e593b2b01
@ -136,9 +136,12 @@ func (client *Client) eventHandler(evt interface{}) {
|
||||
return
|
||||
}
|
||||
|
||||
chatUserId := v.Info.Chat.User
|
||||
// Ignore business chats
|
||||
if v.Info.VerifiedName != nil {
|
||||
return
|
||||
}
|
||||
|
||||
// TODO: Ignore businesses
|
||||
chatUserId := v.Info.Chat.User
|
||||
|
||||
if client.hasAutoRespondedWithinSameDay(chatUserId) {
|
||||
fmt.Printf("Already responded to user %s, skipping\n", chatUserId)
|
||||
|
Loading…
Reference in New Issue
Block a user