Handle WhatsApp Cloud API webhooks, processing both verification requests and event notifications.
-
Clone the repository:
git clone https://github.com/tinkershack/wabot cd wabot -
Install dependencies:
go mod tidy -
Run the application:
go run main.go -
Access the webhook endpoint: The application will listen for incoming requests at
http://localhost:8080/whooks.
-
Verification Requests: The application will respond to GET requests for verification by checking the
hub.verify_tokenand returning thehub.challenge. -
Event Notifications: The application will process POST requests containing event notifications in JSON format, allowing you to handle changes to the subscribed fields.