[go: up one dir, main page]

Skip to content

Python Webhook Server Library#

license release

Python Webhook Server Library for integration with WhatsApp messenger via API of green-api.com service. To use the library you have to get a registration token and an instance ID in the console. There is a free developer instance plan.

Outdated library Python Webhook Server Library v1.0

Warning!!! The old version Python Webhook Server Library v1.0 of the documentation can be found at the link. The version is outdated and left for compatibility.

API#

The documentation for the REST API can be found at the link. The library is a wrapper for the REST API, so the documentation at the link above also applies.

Configuration#

Before you start, make sure that you have configured the instance to receive webhooks on your server

  • Go to the Green-API console
  • Create a free instance on the Developer plan
  • In the instance settings, define the address of your webhook server. It is allowed to set both the domain name and the IP address
  • Turn on the webhooks you want to receive. See the picture in console settings
  • Save the instance settings
  • Authorize the instance by scanning the QR code from your phone
  • Write any message on WhatsApp to the number that is connected to the instance
  • Watch in the web server console for incoming message webhooks

Server startup from the library#

Server startup in Docker#

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

Please see file LICENSE.