/whatsapper

A simple web api for whatsapp-web.js

Primary LanguageJavaScriptMIT LicenseMIT

Whatsapper

A tiny web api on whatsapp-web.js

Usage

After run, the QR code for association will be displayed on the console. Is also possible to get the string version from the path /qr

After this, whatsapper is logged and you can forward all whatsapp-web.js calls via the /command api with this json syntax:

{
  "command" : "cmd",
  "params": ["param1", "param2"],
}

this will be forwarded to the whatsapp-web.js and you will get back the return of the lib.

Run

npm i
node server.js

Run with docker compose

docker compose up