yowsup icon indicating copy to clipboard operation
yowsup copied to clipboard

Broadcast doesnt work for more than 1 recepient

Open mrtass opened this issue 12 years ago • 12 comments

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.

mrtass avatar Apr 26 '14 13:04 mrtass

Have u tried setting an array instead of comma separated string?

SikiFn avatar Apr 26 '14 19:04 SikiFn

For me dont work too, I am using yowsup-cli with comma separated and returns timedout

guilhermebr avatar May 13 '14 13:05 guilhermebr

Yes same here I couldn't get it to work

mrtass avatar May 13 '14 13:05 mrtass

Use a python list dude: contacts = ["494541xxxxx", "18574541xxxx", "44256854xxxxx"]

SikiFn avatar May 13 '14 16:05 SikiFn

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 =[

guilhermebr avatar May 13 '14 21:05 guilhermebr

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>

guilhermebr avatar May 13 '14 22:05 guilhermebr

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 ;)

niravtrivedi avatar May 09 '15 12:05 niravtrivedi

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?

Ankur-Jat avatar Jun 25 '15 11:06 Ankur-Jat

broadcast is not working try in loop

niravtrivedi avatar Jun 25 '15 14:06 niravtrivedi

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 avatar Sep 11 '15 16:09 ale-rinaldi

@ale-rinaldi could you send me your full script? I dont get it to send a broadcast per script... Thanks

tobilektri avatar Feb 22 '16 18:02 tobilektri

Already fixed long time ago!

jlguardi avatar May 15 '16 23:05 jlguardi