Python Webhook server library#
Configuration#
Before you start, make sure that you have configured the instance to receive webhooks on your server
- Go to the GreenAPI 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 personal cabinet 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#
Preparing environment#
- Example of preparing a server environment on the Ubuntu operating system
- Example of preparing a server environment on the Windows operating system