telegram package

Version Constants

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

telegram.__bot_api_version__ = '6.0'[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__ = BotAPIVersion(major=6, minor=0)[source]

Shortcut for telegram.constants.BOT_API_VERSION_INFO.

New in version 20.0.

Type

typing.NamedTuple

telegram.__version__ = '20.0a1'[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__ = Version(major=20, minor=0, micro=0, releaselevel='alpha', serial=1)[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.

New in version 20.0.

Type

typing.NamedTuple

Available Types

Stickers

Inline Mode

Payments

Games

Passport