Skip to content

Latest commit

 

History

History
85 lines (62 loc) · 1.48 KB

README.md

File metadata and controls

85 lines (62 loc) · 1.48 KB

SEND WHATSAPP MESSAGE API 🔥

DESCRIPTION

Send a message to Whatsapp sending a number and a message with whatsapp-web.js library

Run the app

To deploy this project run

  yarn run dev

the app should run in localhost:3001

API Reference

Get current time to indicate that the app is running

  GET /

Get QR (this QR it will be used to connect WhatsApp)

    GET /qr

Send message to numbers

    POST /lead
Parameter Type Description
data array Required. this array recibes object with this structure { message: "" , phone ""}

Example

    {
        "data": [
            {
                "message": "This is a message for testing",
                "phone": "***********"
            },
            {
                "message": "This is a message for testing",
                "phone": "********"
            }
        ]
    }

Response

    {
      "responseExSave": {
          "status": 200,
          "message": "Messages have been sent successfully",
          "hasError": false
      }
   }

Running the app with docker

build a image with this command

Running the app with docker 🐳

👉 build a image with this command

   docker build -t whatsapp-sender . 

🚀 run the container

   docker run -d -p 80:3001 whatsapp-sender