{"repo":"Secreto31126/whatsapp-api-js","free":true,"listed":false,"github":"https://github.com/Secreto31126/whatsapp-api-js","clone":"git clone https://github.com/Secreto31126/whatsapp-api-js.git","description":"A lightweight, dependency-less, efficient TS library for interacting with the official WhatsApp Cloud API","language":"TypeScript","stars":352,"topics":["nodejs","npm-package","whatsapp","cloud","api","bot","bot-framework","chatbot","cloud-api","whatsapp-bot"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"whatsapp-api-js v6 A lightweight, dependency-less, efficient TS library for interacting with the official WhatsApp Cloud API. List of contents - whatsapp-api-js v6 - List of contents - Set up - Examples and Tutorials - Types - Changelog - Documentation - Contributors - Contributions - Breaking changes - Beta releases Set up Before all, you will need a Meta Bussiness App with WhatsApp API activated. You can create your first app following this steps. - Get the API token, either a temporal or a permanent one. - Get your App secret from the dashboard in App Settings Basic App Secret. - More in-depth information on how to set and retrieve this values is available at the module documentation You can now install the module using npm: Which will let you write code like this: To receive the messages updates, you must set-up the webhook at your Meta app. Back in the dashboard, click on WhatsApp Settings, write down your webhook URL, and make sure to subscribe to the messages event. You will also be asked for a Verify Token. This can be any string you want. The package also includes a GET handler for the webhook authentication: And that's it! Now you have a functioning Whatsapp Bot connected to your server. For more information on the setup process for specific runtimes and frameworks, check out the Environments.md file. Examples and Tutorials There are a few examples that cover how to create each type of message, and how to use the basic methods of the library. Check them out in the e","default_branch":null,"files":null,"tree":[],"storefront":"/r/Secreto31126","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Secreto31126/whatsapp-api-js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}