GithubHelp home page GithubHelp logo

hallobayi / wa-gateway Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mimamch/wa-gateway

0.0 0.0 0.0 375 KB

Headless Multi Session Whatsapp Gateway API

License: MIT License

JavaScript 87.24% EJS 12.76%

wa-gateway's Introduction

Headless Multi Session Whatsapp Gateway NodeJS

Easy Setup Headless multi session Whatsapp Gateway with NodeJS

  • Support multi device
  • Support multi session / multi phone number
  • Anti delay message
  • Bulk Message

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

// .env

PORT=5001 // which port to running on your machine
KEY=mysupersecretkey # For Securing Some Data

Install and Running

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

Open On Browser & Start New Session

  http://localhost:5000/start-session?session=mysession&scan=true

API Reference

Add new session

  GET /start-session?session=NEW_SESSION_NAME&scan=true
Parameter Type Description
session string Required. Create Your Session Name
scan boolean Print QR at Browser

Send Text Message

  POST /send-message
Body Type Description
session string Required. Session Name You Have Created
to string Required. Receiver Phone Number with Country Code (e.g: 62812345678)
text string Required. Text Message

Send Bulk 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 Delay Per-message in Miliseconds, Default to 5000ms

Delete session

  GET /delete-session?session=SESSION_NAME
Parameter Type Description
session string Required. Create Your Session Name

Get All Session ID

  GET /sessions?key=mysupersecretkey
Parameter Type Description
key string Required. Key on ".env" file

Changelog

V3.2.0

  • Add Get All Session ID
  • Add Key for secret data
  • Update README.md

Upgrading

npm install wa-multi-session@latest

Documentation

For detailed documentation, including guides and API references, please visit the official documentation.

Contributing

Contributions are welcome! Please follow the guidelines outlined in the CONTRIBUTING.md file.

License

This library is licensed under the MIT License.

wa-gateway's People

Contributors

mimamch avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.