Open recoverjp opened 10 years ago
I think dont use pollMessages() when send a message!
Amirjan, did not work. When it connects, it reads the messages.
the login function contains pollmessages so it works correctly whatsapp.
Make pollMessages function to:
$autoReceipt = false
Also in processInboundDataNode
It worked, but now when I step on pollMessages(true) function, it does not read.
Fixed. Just change this:
Line 1784
protected function processInboundData($data, $autoReceipt)
Line 1888
protected function processInboundDataNode(ProtocolNode $node, $autoReceipt)
And you set if you want the autoreceipt here: Line 496
public function pollMessage($autoReceipt = true)
Line 481
public function pollMessages($autoReceipt = true)
If it works, tell me and ill make a pull request
It did not work. If I pass true as parameter ($w->pollMessages(true)), it is not marking as read (two ticks, just one).
But..., did you change both processInboundDataNode and processInboundData?
If not is not working, ill check it tonight and make a fix ;)
Yes, I made all the changes you suggested. If you get a result at night, let me know.
hello guys, any luck on this? I am also looking for a way to not pull messages every time I send one out.
@felipemattos check WhatsAPI Official, this repo is inactive: https://github.com/mgp25/WhatsAPI-Official
@mgp25 thank you. I am actually using this code, will migrate to WhatsAPI-Official then.
When I send a text message or media, it automatically reads the messages that were sent to the number. How do I do this it does not read the messages?