27 lines
540 B
Markdown
27 lines
540 B
Markdown
# AyrisTech WhatsApp Gateway
|
|
|
|
A simple WhatsApp Gateway worker using `whatsapp-web.js` and `express`.
|
|
|
|
## Features
|
|
- QR Code generation for authentication
|
|
- Message sending via HTTP POST
|
|
- Multi-user support via LocalAuth
|
|
|
|
## Setup
|
|
1. Clone the repository
|
|
2. Run `npm install`
|
|
3. Copy `.env.example` to `.env` and configure your settings
|
|
4. Run `npm start`
|
|
|
|
## API
|
|
### Send Message
|
|
**POST** `/send-message`
|
|
```json
|
|
{
|
|
"secret": "your_webhook_secret",
|
|
"userId": "unique_user_id",
|
|
"to": "phone_number",
|
|
"message": "your_message"
|
|
}
|
|
```
|