whatsapp-cloud-api
whatsapp-cloud-api copied to clipboard
A Node.js library for creating bots and sending/receiving messages using the Whatsapp Cloud API
Allows developer to send "Read" status Preferably using the existing method `bot.sendMessage()` or a new one like `bot.sendStatus()` Official documentation: https://developers.facebook.com/docs/whatsapp/cloud-api/guides/mark-message-as-read
I think this is a good project, But the fact that it doesn't have a direct function to handle media download, or get you media URL is weird . Try...
Now we can handle the quick reply buttons sent as part of a template. More info: https://developers.facebook.com/docs/whatsapp/api/messages/message-templates/interactive-message-templates/#callback-from-a-quick-reply-button-click This fixes #52
When receiving a forwarded "contacts" type message, Message "data" property that was supposed to be a Contact array, turns into an object filled with Contacts and a "context" property. Adding...
as mentioned in https://developers.facebook.com/docs/graph-api/webhooks/getting-started, event notifications should be validated with the sha256 hash provided in the `X-Hub-Signature-256` this will ensure secure communication, and help rejecting bad requests
Adding the ability to react to messages, [reaction](https://developers.facebook.com/docs/whatsapp/cloud-api/reference/messages#reaction-object)
in this simple app: ```ts import { createBot } from "whatsapp-cloud-api"; const WA_PHONE_NUMBER_ID = process.env.WA_PHONE_NUMBER_ID; const WA_CLOUD_API_ACCESS_TOKEN = process.env.WA_CLOUD_API_ACCESS_TOKEN; const WA_WEBHOOK_TOKEN = process.env.WA_WEBHOOK_TOKEN; if (!WA_PHONE_NUMBER_ID) { throw new Error("Invalid WA_PHONE_NUMBER_ID");...
Hi I have created a template and it is active. I am sending template as below : bot.sendTemplate( mobileNumber, "cg_quest_text", "en_US", [ { "type": "body", "parameters": [{ "type": "text", "text":...
Hi! 👋 Firstly, thanks for your work on this project! 🙂 Today I used [patch-package](https://github.com/ds300/patch-package) to patch `[email protected]` for the project I'm working on. Here is the diff that solved...