Python chatbot Telegram Library#
The Python library is a library for integration with the Telegram messenger through the API of the green-api.com service. To use the library, you need to get a registration token and an instance ID in the console. For testing, we recommend using the free "Developer" plan.
API#
The documentation for the REST API is available at this link. The library is a wrapper for the REST API, so the documentation at the link above also applies to the library itself.
Authorization#
To send a message or execute other GREEN-API methods, the Telegram account in the phone application must be in the authorized state. To authorize an instance, go to the console and scan the QR code using the Telegram application.
How to start receiving messages and replying to them#
How to receive other notifications and process the notification body#
How to filter incoming messages#
A bot example#
Documentation on the service methods#
Documentation on the service methods
License#
Licensed under the terms of Creative Commons Attribution-NoDerivatives 4.0 International (CC BY-ND 4.0) . LICENSE.