venomous0x / WhatsAPI

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

Using More than one sender #1021

Open echoashu opened 9 years ago

echoashu commented 9 years ago

I just started testing this, with an example (whatsapp.php ) . Single Text Message works fine.

I was wondering is it possible to select two senders at once , and send message to two contacts?

Thanks?

prajeshmadhavi commented 9 years ago

you can, first login by first sender send first message, then login by second sender and then send second. OR you can hold diffrent object for diffrent sender and iterate through sender with certail delay. Is that what you need?

echoashu commented 9 years ago

I think yes. the second answer @prajeshmadhavi gave is what i wud need i guess.

Any way to automate the login process and select the sender and contact based on certain POST or GET input from another web application ?

i mean in a scenario, when user logins to a web application, it would send him login notification. So it will submit user's registered phone number, message content, and a sender number to be used with that to whatsapi, and i wud be able to grab that and process the message.