Ignore biz chats

This commit is contained in:
2025-03-28 08:02:24 +05:30
parent 63394087fe
commit 9e593b2b01

View File

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