1.0.5 • Published 2 years ago
meta-whatsapp-api v1.0.5
Installation
npm install --save meta-whatsapp-api
How to Use
Sending Messages
import {WhatsappAPI} from "meta-whatsapp-api";
const wp = new WhatsappAPI({
fromPhoneNumberId: "<from-phone-number-id>", // required
accessToken: "<access-token>", // required
})
await wp.sendTextMessage("<phone-number-to-send>", "<plain-message>");