Send a message to Whatsapp sending a number and a message with whatsapp-web.js library
To deploy this project run
yarn run dev
the app should run in localhost:3001
GET /
GET /qr
POST /lead
Parameter | Type | Description |
---|---|---|
data |
array |
Required. this array recibes object with this structure { message: "" , phone ""} |
{
"data": [
{
"message": "This is a message for testing",
"phone": "***********"
},
{
"message": "This is a message for testing",
"phone": "********"
}
]
}
{
"responseExSave": {
"status": 200,
"message": "Messages have been sent successfully",
"hasError": false
}
}
build a image with this command
docker build -t whatsapp-sender .
docker run -d -p 80:3001 whatsapp-sender