[go: up one dir, main page]

Skip to content

Golang chatbot WhatsApp Library#

license

Golang chatbot library for writing a chatbot in the WhatsApp messenger. service green-api.com. To use the library, you need to obtain a registration token and instance ID in console. There is a free developer instance plan.

API#

Documentation for the REST API can be found at link. The library is a wrapper for the REST API, therefore the documentation in the link above also applies to the library itself.

Authorization#

To send a message or perform other GREEN API methods, the WhatsApp account in the phone app must be in authorized state. To authorize your instance, go to console and scan the QR code using the WhatsApp application.

How to import the library and initiate your bot#

How to start receiving and responding to messages#

How to receive other notifications and process the notification body#

How to filter incoming messages#

How to manage state and scenes#

Bot example#

GREEN-API demo chatbot 🔥#

Documentation on service methods#

Documentation on service methods

License#

Licensed under Creative Commons Attribution-NoDerivatives 4.0 International (CC BY-ND 4.0) . LICENSE.