Skip to content

Vente16/send-whatsapp-message

Repository files navigation

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  

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published