Broadcast doesnt work for more than 1 recepient
Hello all any idea why the broadcast parameter doesnt work when sending to 2 recepients? the numbers are comma seperated and auth success is returned... ps : broadcast to 1 recepient works fine
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Have u tried setting an array instead of comma separated string?
For me dont work too, I am using yowsup-cli with comma separated and returns timedout
Yes same here I couldn't get it to work
Use a python list dude: contacts = ["494541xxxxx", "18574541xxxx", "44256854xxxxx"]
But EchoClient used by yowsup-cli transform the string in list: self.jids = ["%[email protected]" % t for t in target.split(',')]
and I tried use list instead of comma separated string, and also dont work =[
In Debug broadcast are sent, but destinations dont receive (if i send in message_send separately works)
<message to="broadcast" type="chat" id="1400021087-1">
<x xmlns="jabber:x:event">
<server>
</server>
</x>
<broadcast>
<to jid="[email protected]">
</to>
<to jid="[email protected]">
</to>
</broadcast>
<body>
Test Message</body>
</message>
same here. To find issue on broadcast we have extract template method of whatsapp how it combine phones,what headers it send(IF sending headers) and etc... May be ;)
Same issue when I'm using """ /message send 91********** "testing message" """ it works fine but when I'm trying broadcast by """ /message broadcast 91*********,91********* "testing message" """ It didn't work! Am I doing something wrong or its a bug?
broadcast is not working try in loop
Working fine here. I use the normalizeJid function from the demos:
def normalizeJid(self, number):
if '@' in number:
return number
elif "-" in number:
return "%[email protected]" % number
return "%[email protected]" % number
So my list is something like:
destinations=["[email protected]", "[email protected]"]
then I use
outgoingMessage = BroadcastTextMessage(destinations, msgtext)
self.toLower(outgoingMessage)
and works like a charm! *NOTE: * to receive a broadcast message, your contact needs to have your number in his address book!
@ale-rinaldi could you send me your full script? I dont get it to send a broadcast per script... Thanks
Already fixed long time ago!