Skip to content

A Golang package to handle WhatsApp Cloud API webhooks, processing both verification requests and event notifications.

Notifications You must be signed in to change notification settings

tinkershack/wabot

Repository files navigation

Wabot

Handle WhatsApp Cloud API webhooks, processing both verification requests and event notifications.

Setup Instructions

  1. Clone the repository:

    git clone https://github.com/tinkershack/wabot
    cd wabot
    
  2. Install dependencies:

    go mod tidy
    
  3. Run the application:

    go run main.go
    
  4. Access the webhook endpoint: The application will listen for incoming requests at http://localhost:8080/whooks.

Usage

  • Verification Requests: The application will respond to GET requests for verification by checking the hub.verify_token and returning the hub.challenge.

  • Event Notifications: The application will process POST requests containing event notifications in JSON format, allowing you to handle changes to the subscribed fields.

About

A Golang package to handle WhatsApp Cloud API webhooks, processing both verification requests and event notifications.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages