How to Send and Receive Messages in WhatsApp using PHP



In this tutorial you will see How to Send and Receive Messages in WhatsApp using PHP. Syncing Contacts is an Initial & even Required Step. You Need to sync Contacts with WhatsApp Server to Send Messages to those Numbers. [ Note : If You try to Send Messages without Syncing Contacts , your WhatsApp may Get BLOCKED ]

WhatsAPI_SendAndReceiveMessages

 

Easy Way :-

Prerequisite :-

  1. PHPHive WhatsApp RESTAPI Token , Get it From http://wapi.phphive.info/console/
  2. WhatsApp PasswordRefer : https://www.phphive.info/255/get-whatsapp-password/

PHP Snippet for Sending Messages

Sample Output : 

PHP Snippet for Receiving Messages



Sample Output : 

Q : Is There any Daily Limit for Using this API ?

Ans : No! There’s No Daily Limit. But Spamming is Obviously Not allowed. We are keeping records of IP’s, if we find someone Spamming our Service then that IP will be Banned.

-=-=-==-=-=-=-=-==-=-=-=-=-==-=-=-=-=-==-=-=-=-=-==-=-=-=-=-==-=-=-=-=-==-=-=-

Other Way :-

Prerequisite’s for Syncing Contacts in WhatsApp :-

If You haven’t Download WhatsAPI PHP Library, so Download it Now as we gonna use it in the Process of Obtaining WA Password.

Download “WhatsAPI.zip” master.zip – Downloaded 23537 times –

If You Dont Have WA Password, Refer this :- How to Get WhatsApp Password

So Let’s Get Started !

Logging in to WhatsApp

Syncing Contacts

Refer this :- How to Sync Contacts in WhatsApp using PHP

Sending Messages

Receiving Messages

Complete Code :-

Enjoy 🙂



Was this article/content helpful?
Thanks! Your feedback helps us to improve PHPHive.info

52 Comments
  1. Shardul
    • Puneet Mehta
    • Gopal
      • Puneet Mehta
  2. Rafael
  3. Julian
    • Puneet Mehta
      • Martin
        • Puneet Mehta
  4. Rodrigo
    • Puneet Mehta
  5. Ajay A
    • Puneet Mehta
  6. Luis Romero
    • Puneet Mehta
  7. Otto Brunken
    • Shihab Sharar
  8. Rogério Maciel
    • Puneet Mehta
  9. sudiar
    • Puneet Mehta
  10. Karthic
    • Puneet Mehta
  11. Naman
  12. kklee
    • Puneet Mehta
  13. Wilfred
    • Puneet Mehta
    • Karthic
      • Puneet Mehta
  14. Puneet Mehta
  15. Superdy
    • Puneet Mehta
  16. Hotsh0t
    • Puneet Mehta
  17. Prasanna
    • Puneet Mehta
  18. Junior Souza
    • Puneet Mehta
  19. benikar
    • Puneet Mehta
  20. Sher Ali
    • Puneet Mehta
  21. Vignesh
  22. Romualdo
    • Puneet Mehta
  23. Mustaan Abbasi

Leave a Reply

Your email address will not be published. Required fields are marked *