Open dahansi opened 9 years ago
you can refer to this issue https://github.com/mgp25/WhatsAPI-Official/issues/192#issuecomment-66620444
Great, thanks! That's working now :)
I tried setting up a little broadcast with my friends (4 numbers only), because if I use the normal sendMessage it takes too long until the last one gets it (~ 1 Minute).
To send a broadcast I do this:
One of my friends is receiving the message, the other 3 (and me) are not getting anything. sendSync says, that the number exists. I dont get any error.
I call it like:
$msgs = "Hello";
$nrs = array("49123456789","49123456987","49123456788","49123456777");
$this->w->sendBroadcastMessage($nrs,$msgs);
Can you help me again, please?
Thanks!!
@mgp25 I'm using your API. The error occurs there. Do you want me to start a new issue at yours?
@dahansi there is a wiki with examples there...
@mgp25 Yes, I know, I read it and I did it the same way. But I dont get any messages. If I call onBroadcastLists($nr,$lists), I get every broadcast I started. But I never received any message :(
@dahansi Send broadcast messages only works with synced contacts
@mgp25 I do sync it (https://github.com/venomous0x/WhatsAPI/issues/1050#issuecomment-67169577):
$nrs = array("49xxx","49yyy");
$this->w->sendSync($nrs);
$this->w->sendBroadcastMessage($nrs,$msgs);
I tried creating a group and that worked and sending a message there worked, too ($this->w->sendMessage("xxx-xxx",$msgs);)
I just cant get the broadcast to work -.-
Thank you so much for all your help!!
Not you, the other contacts must have synced your number
The contacts have me saved in their contact list. They tried sending a Broadcast to my number and that worked. So I think they are synced?
How else can I sync a number on the smartphone?
Hi there,
I'm stuck and can't find any solution: I have an input form where i can type my text and images ([img]path/to/img.jpg[/img]. Then I seperate Text from Images and send them step by step. But after I sent an image i get:
I replaced the sendImage with sendMsg and this is delivered correctly.
I do it like this:
If I skip step 19 it won't send the image, but the script keeps running and sends the rest of the text. After I call pollMessage() I have to login again. After I send an image, I even cant reconnect with login().
The Stack Trace:
Can you help me with this? Thanks so much!