Ignore biz chats

This commit is contained in:
Sangeeth Sudheer 2025-03-28 08:02:24 +05:30
parent 63394087fe
commit 9e593b2b01
Signed by: x
GPG Key ID: F6D06ECE734C57D1

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)