![]() Now we need to indicate a WebHook URL so the server can run the scrip when new messages arrive. Next, open WhatsApp on your smartphone, go to Settings -> WhatsApp Web -> Scan a QR code. To do this, go to your personal account and get a QR code there. Preparatory workĪt the very beginning, we need to connect whatsapp with our script, so as we write the code, we check its operation. It’s more convenient to use a separate smartphone for coding. Send a message to +1 585 572-1186 through WhatsApp and test the API.Īttention: to make the bot running, the phone must be connected to the Internet and mustn’t be used for Whatsapp Web. Sending geo-coordinates (geo-locations).Sending files of different formats (pdf, jpg, doc, mp3, etc.). ![]() Now our demo bot features the following functions: ![]() We’ll tell you how to write a simple bot on PHP using API WhatsApp.Ī demo bot will react on commands of ordinary Whatsapp messages to answer them.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |