Skip to content

rtaserver/ApiWhatsapp-Gateway

Repository files navigation

PhpNuxBill
Api Whatsapp Gateway - To send notifications to customers

Unofficial Whatsapp Gateway Using NodeJs

GitHub release (with filter) GitHub

Features

Easy Setup Headless multi session Whatsapp Gateway with NodeJS.

  • Support multi device
  • Support Pairing Code
  • Anti delay message

Free Whatsapp Gateway By IbnuX https://wa.nux.my.id/

Documentation

Settings Variables

To run this project, you will need to edit variables in settings.js file

// ============= GLOBAL SETTING ============ //
global.port = "5001"; // Port Api / Browser
global.countrycode = "ID"; // Country Code - https://countrycode.org/ (ISO CODES)
global.countrycodephone = "62"; // Country Phone - https://countrycode.org/ (COUNTRY CODE)
global.timezone = "Asia/Jakarta"; // Time Zone
global.usePairingNumber = false; // true = Pairing Code / false = QRCode
global.pairingNumber = ""; // whatsapp number used as a bot, for pairing number
//========================================================

global.pp_bot = fs.readFileSync("./image/logo.png"); // location and name of the logo
global.use_pp = true; // use a logo?

//========================================================

global.kontakadmin = ["6281287123512"]; // admin whatsapp number
global.kirimkontak_admin = false; // true = automatically send admin contact

//========================================================

global.sessionName = "session"; // session name

//========================================================

Install and Running

Clone the project

  git clone https://github.com/rtaserver/ApiWhatsapp-Gateway.git

Go to the project directory

  cd ApiWhatsapp-Gateway

Install dependencies

  npm install

Start the server

  npm run start

Open On Browser & Start New Session to Get QRCode if PairingCode False

  http://localhost:5001/scan

API Reference

Send Text Message

  POST /send-message
  GET /send-message?message=Text&number=08123456789
Body Type Description
message string Required. Text Message
number string Required. Receiver Phone Number (e.g: 62812345678 / 0812345678)

Changelog