telegram package¶
Version Constants¶
A library that provides a Python interface to the Telegram Bot API
- telegram.__bot_api_version__ = '7.10'[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__ = (7, 10)[source]¶
Shortcut for
telegram.constants.BOT_API_VERSION_INFO
.Added in version 20.0.
- Type:
- telegram.__version__ = '21.6'[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__ = (21, 6, 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:
Classes in this package¶
- Bot
- Available Types
- Animation
- Audio
- Birthdate
- BotCommand
- BotCommandScope
- BotCommandScopeAllChatAdministrators
- BotCommandScopeAllGroupChats
- BotCommandScopeAllPrivateChats
- BotCommandScopeChat
- BotCommandScopeChatAdministrators
- BotCommandScopeChatMember
- BotCommandScopeDefault
- BotDescription
- BotName
- BotShortDescription
- BusinessConnection
- BusinessIntro
- BusinessLocation
- BusinessOpeningHours
- BusinessOpeningHoursInterval
- BusinessMessagesDeleted
- CallbackQuery
- Chat
- ChatAdministratorRights
- ChatBackground
- BackgroundType
- BackgroundTypeFill
- BackgroundTypeWallpaper
- BackgroundTypePattern
- BackgroundTypeChatTheme
- BackgroundFill
- BackgroundFillSolid
- BackgroundFillGradient
- BackgroundFillFreeformGradient
- ChatBoost
- ChatBoostAdded
- ChatBoostRemoved
- ChatBoostSource
- ChatBoostSourceGiftCode
- ChatBoostSourceGiveaway
- ChatBoostSourcePremium
- ChatBoostUpdated
- ChatFullInfo
- ChatInviteLink
- ChatJoinRequest
- ChatLocation
- ChatMember
- ChatMemberAdministrator
- ChatMemberBanned
- ChatMemberLeft
- ChatMemberMember
- ChatMemberOwner
- ChatMemberRestricted
- ChatMemberUpdated
- ChatPermissions
- ChatPhoto
- ChatShared
- Contact
- Dice
- Document
- ExternalReplyInfo
- File
- ForceReply
- ForumTopic
- ForumTopicClosed
- ForumTopicCreated
- ForumTopicEdited
- ForumTopicReopened
- GeneralForumTopicHidden
- GeneralForumTopicUnhidden
- Giveaway
- GiveawayCompleted
- GiveawayCreated
- GiveawayWinners
- InaccessibleMessage
- InlineKeyboardButton
- InlineKeyboardMarkup
- InputFile
- InputMedia
- InputMediaAnimation
- InputMediaAudio
- InputMediaDocument
- InputMediaPhoto
- InputMediaVideo
- InputPaidMedia
- InputPaidMediaPhoto
- InputPaidMediaVideo
- InputPollOption
- InputSticker
- KeyboardButton
- KeyboardButtonPollType
- KeyboardButtonRequestChat
- KeyboardButtonRequestUsers
- LinkPreviewOptions
- Location
- LoginUrl
- MaybeInaccessibleMessage
- MenuButton
- MenuButtonCommands
- MenuButtonDefault
- MenuButtonWebApp
- Message
- MessageAutoDeleteTimerChanged
- MessageEntity
- MessageId
- MessageOrigin
- MessageOriginChannel
- MessageOriginChat
- MessageOriginHiddenUser
- MessageOriginUser
- MessageReactionCountUpdated
- MessageReactionUpdated
- PaidMedia
- PaidMediaInfo
- PaidMediaPhoto
- PaidMediaPreview
- PaidMediaPurchased
- PaidMediaVideo
- PhotoSize
- Poll
- PollAnswer
- PollOption
- ProximityAlertTriggered
- ReactionCount
- ReactionType
- ReactionTypeCustomEmoji
- ReactionTypeEmoji
- ReactionTypePaid
- ReplyKeyboardMarkup
- ReplyKeyboardRemove
- ReplyParameters
- SentWebAppMessage
- SharedUser
- Story
- SwitchInlineQueryChosenChat
- TelegramObject
- TextQuote
- Update
- User
- UserChatBoosts
- UserProfilePhotos
- UsersShared
- 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
- Invoice
- LabeledPrice
- OrderInfo
- PreCheckoutQuery
- RefundedPayment
- RevenueWithdrawalState
- RevenueWithdrawalStateFailed
- RevenueWithdrawalStatePending
- RevenueWithdrawalStateSucceeded
- ShippingAddress
- ShippingOption
- ShippingQuery
- StarTransaction
- StarTransactions
- SuccessfulPayment
- TransactionPartner
- TransactionPartnerFragment
- TransactionPartnerOther
- TransactionPartnerTelegramAds
- TransactionPartnerUser
- Games
- Passport
- Credentials
- DataCredentials
- EncryptedCredentials
- EncryptedPassportElement
- FileCredentials
- IdDocumentData
- PassportData
- PassportElementError
- PassportElementErrorDataField
- PassportElementErrorFile
- PassportElementErrorFiles
- PassportElementErrorFrontSide
- PassportElementErrorReverseSide
- PassportElementErrorSelfie
- PassportElementErrorTranslationFile
- PassportElementErrorTranslationFiles
- PassportElementErrorUnspecified
- PassportFile
- PersonalDetails
- ResidentialAddress
- SecureData
- SecureValue