Python Telegram Client Library#
A Python 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 another Green-API method, the instance must be in the authorized state. To authorize an instance, go to the console and scan the QR code using the Telegram application.
Usage examples#
Documentation on the service methods#
Third-party products#
- requests - for http requests
License#
Licensed under the terms of Creative Commons Attribution-NoDerivatives 4.0 International (CC BY-ND 4.0).
See the LICENSE file.