telegram package

Version Constants

A library that provides a Python interface to the Telegram Bot API

telegram.__bot_api_version__ = '7.3'[source]

Shortcut for telegram.constants.BOT_API_VERSION.

Changed in version 20.0: This constant was previously named bot_api_version.

Type:

str

telegram.__bot_api_version_info__ = (7, 3)[source]

Shortcut for telegram.constants.BOT_API_VERSION_INFO.

Added in version 20.0.

Type:

typing.NamedTuple

telegram.__version__ = '21.2'[source]

The version of the python-telegram-bot library as string. To get detailed information about the version number, please use __version_info__ instead.

Type:

str

telegram.__version_info__ = (21, 2, 0, 'final', 0)[source]

A tuple containing the five components of the version number: major, minor, micro, releaselevel, and serial. All values except releaselevel are integers. The release level is 'alpha', 'beta', 'candidate', or 'final'. The components can also be accessed by name, so __version_info__[0] is equivalent to __version_info__.major and so on.

Added in version 20.0.

Type:

typing.NamedTuple

Classes in this package