Skip to content

DevArKaDiA/whatsapp-web.js-service

Repository files navigation

Api Rest - WebHook Whatsappweb.js image - Service Image


Docker Hub: arkadia0315/whatsappweb-js-service

The aim of this repo is make a lenguaje agnostic interface for whatsappwebjs library using a webhook event system and a rest Api to interact with the library using any programing lenguaje.

Quick Start!!!

Docker

docker run -d -p 3000:3000 arkadia0315/whatsappweb-js-service

Hook Sub Request: POST:localhost:3000/hooks/sub

Payload:

{
  "hookUrl": "www.localhost:4444",
  "events": ["authenticated"]
}

With this endpoint you can subscribe any event supported by whatsappwebjs library, and the service will call the hookUrl with the event payload.

Send Msg Request: POST:localhost:3000/msg/send

Payload:

{
  "msg": "test2",
  "phone": "+57311111111"
}

With this endpoint you can send a raw string msg to any phone number. By the way this endpoit only support raw string msg, but in the future will support multimedia msg.

Whatsappweb.js Api Docs: https://docs.wwebjs.dev/

RoadMap:

  • (NO AUTH) Hook System
  • SUB - UNSUB - Hook peer events System
  • Hook Endpoint calling per Event subcribed
  • Docker Support
  • Send Msg Endpoints (Raw String MSG)
  • Add Multimedia support for Msg endpoint
  • List Chats Endpoints
  • Get Chat Msgs Endpoints

Credits: @pedroslopez - Creator of whatsapp-web.js Official Repo https://github.com/pedroslopez/whatsapp-web.js

About

Whatsappweb.js Api Rest - WebHook - Docker Service

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published