Currently i am using the onAnyMessage() method to detect any message received. But i want to be able to differentiate between messages that i sent from the server (wppconnect), and messages that I sent from any other device.
Is there any way to do this?
Tried using the ID of the message sent, but is a bit messy. is there any other way?
Currently i am using the onAnyMessage() method to detect any message received. But i want to be able to differentiate between messages that i sent from the server (wppconnect), and messages that I sent from any other device.
Is there any way to do this?
Tried using the ID of the message sent, but is a bit messy. is there any other way?