Closed SingIetOxygen closed 6 months ago
You can check the Device
ID in incoming message event, events.Message.Info.Sender.Device
. The JID would be seen like this 1234567890:<ID>@whatsapp.net
.
"The Device
ID always increases whenever we pair a new device. If the Device
is 0
, it means it is sent from the mobile app where our phone number was originally registered."
The idea i have is to make the Whatsmeow read previous messages(to fill a form) only if from another device(same account as whatsmeow) sent a message. But i dont know if detecting when another device has sent messages is possible.