Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/faisalfjri/baileys-express

Implementation example of Baileys with Express
https://github.com/faisalfjri/baileys-express

baileys whatsapp-api whatsapp-bot

Last synced: about 1 month ago
JSON representation

Implementation example of Baileys with Express

Awesome Lists containing this project

README

        

# Baileys and Express

Hi, this is the implementation example of WhiskeySockets/Baileys

### How to use?

- Clone or download this repo
- Enter to the project directory
- Run `npm install`
- Run `npm start`
- Open browser and go to address `http://localhost:3000`
- Scan the QR Code
- Enjoy!

### Send message

Send a Message via HTTP: You can now send WhatsApp messages by making a POST request to http://localhost:3000/send-message with a JSON body containing the number and message fields.

For example, using curl:
```bash
curl -X POST http://localhost:3000/send-message -H "Content-Type: application/json" -d '{"number": "1234567890", "message": "Hello from Baileys and Express!"}'
```