telegram package¶
Version Constants¶
A library that provides a Python interface to the Telegram Bot API
- telegram.__bot_api_version__ = '6.7'[source]¶
Shortcut for
telegram.constants.BOT_API_VERSION
.Changed in version 20.0: This constant was previously named
bot_api_version
.- Type:
- telegram.__bot_api_version_info__ = BotAPIVersion(major=6, minor=7)[source]¶
Shortcut for
telegram.constants.BOT_API_VERSION_INFO
.New in version 20.0.
- Type:
- telegram.__version__ = '20.4'[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:
- telegram.__version_info__ = Version(major=20, minor=4, micro=0, releaselevel='final', serial=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.New in version 20.0.
- Type:
Classes in this package¶
- Bot
- Available Types
- Animation
- Audio
- BotCommand
- BotCommandScope
- BotCommandScopeAllChatAdministrators
- BotCommandScopeAllGroupChats
- BotCommandScopeAllPrivateChats
- BotCommandScopeChat
- BotCommandScopeChatAdministrators
- BotCommandScopeChatMember
- BotCommandScopeDefault
- BotDescription
- BotName
- BotShortDescription
- CallbackQuery
- Chat
- ChatAdministratorRights
- ChatInviteLink
- ChatJoinRequest
- ChatLocation
- ChatMember
- ChatMemberAdministrator
- ChatMemberBanned
- ChatMemberLeft
- ChatMemberMember
- ChatMemberOwner
- ChatMemberRestricted
- ChatMemberUpdated
- ChatPermissions
- ChatPhoto
- ChatShared
- Contact
- Dice
- Document
- File
- ForceReply
- ForumTopic
- ForumTopicClosed
- ForumTopicCreated
- ForumTopicEdited
- ForumTopicReopened
- GeneralForumTopicHidden
- GeneralForumTopicUnhidden
- InlineKeyboardButton
- InlineKeyboardMarkup
- InputFile
- InputMedia
- InputMediaAnimation
- InputMediaAudio
- InputMediaDocument
- InputMediaPhoto
- InputMediaVideo
- InputSticker
- KeyboardButton
- KeyboardButtonPollType
- KeyboardButtonRequestChat
- KeyboardButtonRequestUser
- Location
- LoginUrl
- MenuButton
- MenuButtonCommands
- MenuButtonDefault
- MenuButtonWebApp
- Message
- MessageAutoDeleteTimerChanged
- MessageEntity
- MessageId
- PhotoSize
- Poll
- PollAnswer
- PollOption
- ProximityAlertTriggered
- ReplyKeyboardMarkup
- ReplyKeyboardRemove
- SentWebAppMessage
- SwitchInlineQueryChosenChat
- TelegramObject
- Update
- User
- UserProfilePhotos
- UserShared
- Venue
- Video
- VideoChatEnded
- VideoChatParticipantsInvited
- VideoChatScheduled
- VideoChatStarted
- VideoNote
- Voice
- WebAppData
- WebAppInfo
- WebhookInfo
- WriteAccessAllowed
- Stickers
- Inline Mode
- ChosenInlineResult
- InlineQuery
- InlineQueryResult
- InlineQueryResultArticle
- InlineQueryResultAudio
- InlineQueryResultCachedAudio
- InlineQueryResultCachedDocument
- InlineQueryResultCachedGif
- InlineQueryResultCachedMpeg4Gif
- InlineQueryResultCachedPhoto
- InlineQueryResultCachedSticker
- InlineQueryResultCachedVideo
- InlineQueryResultCachedVoice
- InlineQueryResultContact
- InlineQueryResultDocument
- InlineQueryResultGame
- InlineQueryResultGif
- InlineQueryResultLocation
- InlineQueryResultMpeg4Gif
- InlineQueryResultPhoto
- InlineQueryResultsButton
- InlineQueryResultVenue
- InlineQueryResultVideo
- InlineQueryResultVoice
- InputMessageContent
- InputTextMessageContent
- InputLocationMessageContent
- InputVenueMessageContent
- InputContactMessageContent
- InputInvoiceMessageContent
- Payments
- Games
- Passport
- Credentials
- DataCredentials
- EncryptedCredentials
- EncryptedPassportElement
- FileCredentials
- IdDocumentData
- PassportData
- PassportElementError
- PassportElementErrorDataField
- PassportElementErrorFile
- PassportElementErrorFiles
- PassportElementErrorFrontSide
- PassportElementErrorReverseSide
- PassportElementErrorSelfie
- PassportElementErrorTranslationFile
- PassportElementErrorTranslationFiles
- PassportElementErrorUnspecified
- PassportFile
- PersonalDetails
- ResidentialAddress
- SecureData
- SecureValue