A pure Python interface for the Telegram Bot API

python-telegram-bot

This library provides a pure Python interface for the Telegram Bot API. It’s compatible with Python versions 3.6.2+. PTB might also work on PyPy, though there have been a lot of issues before. Hence, PyPy is not officially supported.

In addition to the pure API implementation, this library features a number of high-level classes to make the development of bots easy and straightforward. These classes are contained in the telegram.ext submodule.

A pure API implementation without telegram.ext is available as the standalone package python-telegram-bot-raw. See here for details.

Note

Installing both python-telegram-bot and python-telegram-bot-raw in conjunction will result in undesired side-effects, so only install one of both.

Telegram API support

All types and methods of the Telegram Bot API 5.2 are supported.

Installing

You can

 

 

 

To finish reading, please visit source site