This is a full implementation of official WhatsApp Cloud API
The module is now available on npm!
npm i --save whatsapp-web.js
const { WhatsAppCloudApi } = require('whatsapp-web.js');
const wAPI = new WhatsAppCloudApi({
appToken: 'xxxxxx'
});
wAPI.sendMessage({
type:'text',
to: {
phoneNumber: '1xxxxx'
},
from: {
phoneNumberId: 'xxxxx'
},
message:{
body: 'Hello World'
}
})
Feature | Status |
---|---|
Send text messages | ✅ |
Something missing? Make an issue and let us know!
Pull requests are welcome! If you want something you'd like to add, please do. For drastic changes, please open an issue first.
This project is not affiliated, associated, authorized, endorsed by, or in any way officially connected with WhatsApp or any of its subsidiaries or its affiliates. The official WhatsApp website can be found at https://whatsapp.com and official documentation for Meta can be found at https://developers.facebook.com/docs/whatsapp/cloud-api. "WhatsApp" as well as related names, marks, emblems and images are registered trademarks of their respective owners.