Auties00 / Cobalt

Standalone unofficial fully-featured Whatsapp Web and Mobile API for Java and Kotlin
MIT License
661 stars 188 forks source link

No notification ring when receiving message on account with bot #291

Closed Duckulus closed 1 year ago

Duckulus commented 1 year ago

When I receive a message on an account that has a bot running my phone does not ring.

This seems to be due to the bot sending message ack automatically. Would be cool if there was a flag to change that behavior

wf4java commented 1 year ago

This is due to the fact that the program shows you as online, I turned it off and notifications started to come

api.changePresence(false); // offline

Auties00 commented 1 year ago

What @UmaltIbragimov said is right, I've added a flag in the latest commit called automaticPresenceUpdates to determine whether the bot should automatically go online/offline when it's turned on/off

Auties00 commented 1 year ago

added in 3.4.1