venomous0x / WhatsAPI

Interface to WhatsApp Messenger
2.59k stars 2.13k forks source link

How Deliver ReceivedClient of BroadcastMessages!? #830

Open Amirjan opened 10 years ago

Amirjan commented 10 years ago

Hi shirioko, $wa->sendBroadcastMessage returns the broadcast message ID but in onMessageReceivedClient, $node->getAttribute('from') is "broadcast" not target phone. How can found any broadcast message ID is received by any client!? Thanks a lot.

mgp25 commented 10 years ago

@Amirjan You just need to get the participant jid :) Update: I dont know if there is an event for this or is implemented. I'll check that later

rx  <message from="1405084260@broadcast" id="1405083880-349" participant="number@s.whatsapp.net" type="text" t="1405084310" notify="mgp25">
rx    <body>Test</body>
rx  </message>
Amirjan commented 10 years ago

This is a received broadcast message! But i mean when send a broadcast message returned id is like broadcast-1405084260-1 and onMessageReceivedClient we receive for example 5 recipient with same id=broadcast-1405084260-1 but $from is 'broadcast'. Please check it. I dont know which target has received my broadcast message...