Contents Menu Expand Light mode Dark mode Auto light/dark mode
PTB has undergone significant changes in v20. Please read the documentation carefully and also check out the transition guide in the wiki.
python-telegram-bot
v20.0a2
Logo
python-telegram-bot
v20.0a2

Reference

  • telegram package
    • telegram.Animation
    • telegram.Audio
    • telegram.Bot
    • telegram.BotCommand
    • telegram.BotCommandScope
    • telegram.BotCommandScopeAllChatAdministrators
    • telegram.BotCommandScopeAllGroupChats
    • telegram.BotCommandScopeAllPrivateChats
    • telegram.BotCommandScopeChat
    • telegram.BotCommandScopeChatAdministrators
    • telegram.BotCommandScopeChatMember
    • telegram.BotCommandScopeDefault
    • telegram.CallbackQuery
    • telegram.Chat
    • telegram.ChatAdministratorRights
    • telegram.ChatInviteLink
    • telegram.ChatJoinRequest
    • telegram.ChatLocation
    • telegram.ChatMember
    • telegram.ChatMemberAdministrator
    • telegram.ChatMemberBanned
    • telegram.ChatMemberLeft
    • telegram.ChatMemberMember
    • telegram.ChatMemberOwner
    • telegram.ChatMemberRestricted
    • telegram.ChatMemberUpdated
    • telegram.ChatPermissions
    • telegram.ChatPhoto
    • telegram.Contact
    • telegram.Dice
    • telegram.Document
    • telegram.File
    • telegram.ForceReply
    • telegram.InlineKeyboardButton
    • telegram.InlineKeyboardMarkup
    • telegram.InputFile
    • telegram.InputMedia
    • telegram.InputMediaAnimation
    • telegram.InputMediaAudio
    • telegram.InputMediaDocument
    • telegram.InputMediaPhoto
    • telegram.InputMediaVideo
    • telegram.KeyboardButton
    • telegram.KeyboardButtonPollType
    • telegram.Location
    • telegram.LoginUrl
    • telegram.MenuButton
    • telegram.MenuButtonCommands
    • telegram.MenuButtonDefault
    • telegram.MenuButtonWebApp
    • telegram.Message
    • telegram.MessageAutoDeleteTimerChanged
    • telegram.MessageEntity
    • telegram.MessageId
    • telegram.PhotoSize
    • telegram.Poll
    • telegram.PollAnswer
    • telegram.PollOption
    • telegram.ProximityAlertTriggered
    • telegram.ReplyKeyboardMarkup
    • telegram.ReplyKeyboardRemove
    • telegram.SentWebAppMessage
    • telegram.TelegramObject
    • telegram.Update
    • telegram.User
    • telegram.UserProfilePhotos
    • telegram.Venue
    • telegram.Video
    • telegram.VideoChatEnded
    • telegram.VideoChatParticipantsInvited
    • telegram.VideoChatScheduled
    • telegram.VideoChatStarted
    • telegram.VideoNote
    • telegram.Voice
    • telegram.WebAppData
    • telegram.WebAppInfo
    • telegram.WebhookInfo
    • telegram.MaskPosition
    • telegram.Sticker
    • telegram.StickerSet
    • telegram.ChosenInlineResult
    • telegram.InlineQuery
    • telegram.InlineQueryResult
    • telegram.InlineQueryResultArticle
    • telegram.InlineQueryResultAudio
    • telegram.InlineQueryResultCachedAudio
    • telegram.InlineQueryResultCachedDocument
    • telegram.InlineQueryResultCachedGif
    • telegram.InlineQueryResultCachedMpeg4Gif
    • telegram.InlineQueryResultCachedPhoto
    • telegram.InlineQueryResultCachedSticker
    • telegram.InlineQueryResultCachedVideo
    • telegram.InlineQueryResultCachedVoice
    • telegram.InlineQueryResultContact
    • telegram.InlineQueryResultDocument
    • telegram.InlineQueryResultGame
    • telegram.InlineQueryResultGif
    • telegram.InlineQueryResultLocation
    • telegram.InlineQueryResultMpeg4Gif
    • telegram.InlineQueryResultPhoto
    • telegram.InlineQueryResultVenue
    • telegram.InlineQueryResultVideo
    • telegram.InlineQueryResultVoice
    • telegram.InputMessageContent
    • telegram.InputTextMessageContent
    • telegram.InputLocationMessageContent
    • telegram.InputVenueMessageContent
    • telegram.InputContactMessageContent
    • telegram.InputInvoiceMessageContent
    • telegram.Invoice
    • telegram.LabeledPrice
    • telegram.OrderInfo
    • telegram.PreCheckoutQuery
    • telegram.ShippingAddress
    • telegram.ShippingOption
    • telegram.ShippingQuery
    • telegram.SuccessfulPayment
    • telegram.Callbackgame
    • telegram.Game
    • telegram.GameHighScore
    • telegram.Credentials
    • telegram.DataCredentials
    • telegram.EncryptedCredentials
    • telegram.EncryptedPassportElement
    • telegram.FileCredentials
    • telegram.IdDocumentData
    • telegram.PassportData
    • telegram.PassportElementError
    • telegram.PassportElementErrorDataField
    • telegram.PassportElementErrorFile
    • telegram.PassportElementErrorFiles
    • telegram.PassportElementErrorFrontSide
    • telegram.PassportElementErrorReverseSide
    • telegram.PassportElementErrorSelfie
    • telegram.PassportElementErrorTranslationFile
    • telegram.PassportElementErrorTranslationFiles
    • telegram.PassportElementErrorUnspecified
    • telegram.PassportFile
    • telegram.PersonalDetails
    • telegram.ResidentialAddress
    • telegram.SecureData
    • telegram.SecureValue
  • telegram.ext package
    • telegram.ext.Application
    • telegram.ext.ApplicationBuilder
    • telegram.ext.ApplicationHandlerStop
    • telegram.ext.CallbackContext
    • telegram.ext.ContextTypes
    • telegram.ext.Defaults
    • telegram.ext.ExtBot
    • telegram.ext.Job
    • telegram.ext.JobQueue
    • telegram.ext.Updater
    • telegram.ext.BaseHandler
    • telegram.ext.CallbackQueryHandler
    • telegram.ext.ChatJoinRequestHandler
    • telegram.ext.ChatMemberHandler
    • telegram.ext.ChosenInlineResultHandler
    • telegram.ext.CommandHandler
    • telegram.ext.ConversationHandler
    • telegram.ext.filters Module
    • telegram.ext.InlineQueryHandler
    • telegram.ext.MessageHandler
    • telegram.ext.PollAnswerHandler
    • telegram.ext.PollHandler
    • telegram.ext.PreCheckoutQueryHandler
    • telegram.ext.PrefixHandler
    • telegram.ext.ShippingQueryHandler
    • telegram.ext.StringCommandHandler
    • telegram.ext.StringRegexHandler
    • telegram.ext.TypeHandler
    • telegram.ext.BasePersistence
    • telegram.ext.DictPersistence
    • telegram.ext.PersistenceInput
    • telegram.ext.PicklePersistence
    • telegram.ext.CallbackDataCache
    • telegram.ext.InvalidCallbackData
  • Auxiliary modules
    • telegram.constants Module
    • telegram.error Module
    • telegram.helpers Module
    • telegram.request Module
      • telegram.request.BaseRequest
      • telegram.request.RequestData
      • telegram.request.HTTPXRequest
    • telegram.warnings Module
  • Telegrams Bot API Docs

Resources

  • Examples
    • arbitrarycallbackdatabot.py
    • chatmemberbot.py
    • contexttypesbot.py
    • conversationbot.py
    • conversationbot2.py
    • customwebhookbot.py
    • deeplinking.py
    • echobot.py
    • errorhandlerbot.py
    • inlinebot.py
    • inlinekeyboard.py
    • inlinekeyboard2.py
    • nestedconversationbot.py
    • passportbot.py
    • paymentbot.py
    • persistentconversationbot.py
    • pollbot.py
    • rawapibot.py
    • timerbot.py
    • webappbot.py
  • Wiki

Project

  • Changelog
  • Website
  • GitHub Repository
  • Telegram Channel
  • Telegram User Group
  • How To Contribute
  • Contributor Covenant Code of Conduct
  v: v20.0a2
Versions
latest
stable
v20.0a2
v20.0a1
v20.0a0
v13.12
v13.11
v13.10
v13.9
v13.8.1
v13.8
v13.7
v13.6
v13.5
v13.4.1
v13.4
v13.3
v13.2
v13.1
v13.0
v12.8
v12.7
v12.6.1
v12.6
v12.5.1
v12.5
v12.4.2
v12.4.1
v12.4.0
v12.3.0
v12.2.0
v12.1.1
v12.1.0
v12.0.0
v12.0.0b1
Downloads
On Read the Docs
Project Home
Builds
Back to top
Edit this page

telegram.Credentials¶

class telegram.Credentials(*args, **kwargs)[source]¶

Bases: telegram.TelegramObject

secure_data[source]¶

Credentials for encrypted data

Type

telegram.SecureData

nonce[source]¶

Bot-specified nonce

Type

str

classmethod de_json(data, bot)[source]¶

See telegram.TelegramObject.de_json().

Next
telegram.DataCredentials
Previous
telegram.GameHighScore
Copyright © 2015-2022, Leandro Toledo
Made with Sphinx and @pradyunsg's Furo