A multi session Whatsapp gateway with NodeJS
- Support multi device
- Support multi session / multi phone number
- Anti delay message
Based on Baileys Typescript/Javascript WhatsApp Web API
To run this project, you will need to add the following environment variables to your .env file
PORT
// which port to running on your machine
Clone the project
git clone https://github.com/mimamch/wa_gateway.git
Go to the project directory
cd wa_gateway
Install dependencies
npm install
Start the server
npm run start
GET /start-session?session=NEW_SESSION_NAME&scan=true
Parameter | Type | Description |
---|---|---|
session |
string |
Required. Create Your Session Name |
scan |
boolean |
Optional. Print QR at Browser |
POST /send-message
Body | Type | Description |
---|---|---|
session |
string |
Required. Session Name You Have Created |
to |
string |
Required. Receiver Phone Number |
text |
string |
Required. Text Message |
POST /send-bulk-message
Body | Type | Description |
---|---|---|
session |
string |
Required. Session Name You Have Created |
data |
array |
Required. Array Of Object Message Data |
delay |
number |
Optional. Delay Per-message in Miliseconds, Default to 5000ms |
GET /delete-session?session=SESSION_NAME
Parameter | Type | Description |
---|---|---|
session |
string |
Required. Create Your Session Name |