mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 22:45:09 +01:00
Add Missing telegram.SecureValue to init and Docs (#2398)
This commit is contained in:
parent
c77ef7eef3
commit
eb993db473
4 changed files with 85 additions and 94 deletions
|
@ -140,6 +140,7 @@ Passport
|
||||||
telegram.credentials
|
telegram.credentials
|
||||||
telegram.datacredentials
|
telegram.datacredentials
|
||||||
telegram.securedata
|
telegram.securedata
|
||||||
|
telegram.securevalue
|
||||||
telegram.filecredentials
|
telegram.filecredentials
|
||||||
telegram.iddocumentdata
|
telegram.iddocumentdata
|
||||||
telegram.personaldetails
|
telegram.personaldetails
|
||||||
|
|
6
docs/source/telegram.securevalue.rst
Normal file
6
docs/source/telegram.securevalue.rst
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
telegram.SecureValue
|
||||||
|
====================
|
||||||
|
|
||||||
|
.. autoclass:: telegram.SecureValue
|
||||||
|
:members:
|
||||||
|
:show-inheritance:
|
|
@ -139,6 +139,7 @@ from .passport.credentials import (
|
||||||
Credentials,
|
Credentials,
|
||||||
DataCredentials,
|
DataCredentials,
|
||||||
SecureData,
|
SecureData,
|
||||||
|
SecureValue,
|
||||||
FileCredentials,
|
FileCredentials,
|
||||||
TelegramDecryptionError,
|
TelegramDecryptionError,
|
||||||
)
|
)
|
||||||
|
@ -147,24 +148,37 @@ from .version import __version__ # noqa: F401
|
||||||
|
|
||||||
__author__ = 'devs@python-telegram-bot.org'
|
__author__ = 'devs@python-telegram-bot.org'
|
||||||
|
|
||||||
__all__ = [
|
__all__ = ( # Keep this alphabetically ordered
|
||||||
|
'Animation',
|
||||||
'Audio',
|
'Audio',
|
||||||
'Bot',
|
'Bot',
|
||||||
|
'BotCommand',
|
||||||
|
'CallbackGame',
|
||||||
|
'CallbackQuery',
|
||||||
'Chat',
|
'Chat',
|
||||||
|
'ChatAction',
|
||||||
|
'ChatLocation',
|
||||||
'ChatMember',
|
'ChatMember',
|
||||||
'ChatPermissions',
|
'ChatPermissions',
|
||||||
'ChatAction',
|
'ChatPhoto',
|
||||||
'ChosenInlineResult',
|
'ChosenInlineResult',
|
||||||
'CallbackQuery',
|
|
||||||
'Contact',
|
'Contact',
|
||||||
|
'Credentials',
|
||||||
|
'DataCredentials',
|
||||||
|
'Dice',
|
||||||
'Document',
|
'Document',
|
||||||
|
'EncryptedCredentials',
|
||||||
|
'EncryptedPassportElement',
|
||||||
'File',
|
'File',
|
||||||
|
'FileCredentials',
|
||||||
'ForceReply',
|
'ForceReply',
|
||||||
|
'Game',
|
||||||
|
'GameHighScore',
|
||||||
|
'IdDocumentData',
|
||||||
'InlineKeyboardButton',
|
'InlineKeyboardButton',
|
||||||
'InlineKeyboardMarkup',
|
'InlineKeyboardMarkup',
|
||||||
'InlineQuery',
|
'InlineQuery',
|
||||||
'InlineQueryResult',
|
'InlineQueryResult',
|
||||||
'InlineQueryResult',
|
|
||||||
'InlineQueryResultArticle',
|
'InlineQueryResultArticle',
|
||||||
'InlineQueryResultAudio',
|
'InlineQueryResultAudio',
|
||||||
'InlineQueryResultCachedAudio',
|
'InlineQueryResultCachedAudio',
|
||||||
|
@ -177,6 +191,7 @@ __all__ = [
|
||||||
'InlineQueryResultCachedVoice',
|
'InlineQueryResultCachedVoice',
|
||||||
'InlineQueryResultContact',
|
'InlineQueryResultContact',
|
||||||
'InlineQueryResultDocument',
|
'InlineQueryResultDocument',
|
||||||
|
'InlineQueryResultGame',
|
||||||
'InlineQueryResultGif',
|
'InlineQueryResultGif',
|
||||||
'InlineQueryResultLocation',
|
'InlineQueryResultLocation',
|
||||||
'InlineQueryResultMpeg4Gif',
|
'InlineQueryResultMpeg4Gif',
|
||||||
|
@ -184,28 +199,70 @@ __all__ = [
|
||||||
'InlineQueryResultVenue',
|
'InlineQueryResultVenue',
|
||||||
'InlineQueryResultVideo',
|
'InlineQueryResultVideo',
|
||||||
'InlineQueryResultVoice',
|
'InlineQueryResultVoice',
|
||||||
'InlineQueryResultGame',
|
|
||||||
'InputContactMessageContent',
|
'InputContactMessageContent',
|
||||||
'InputFile',
|
'InputFile',
|
||||||
'InputLocationMessageContent',
|
'InputLocationMessageContent',
|
||||||
|
'InputMedia',
|
||||||
|
'InputMediaAnimation',
|
||||||
|
'InputMediaAudio',
|
||||||
|
'InputMediaDocument',
|
||||||
|
'InputMediaPhoto',
|
||||||
|
'InputMediaVideo',
|
||||||
'InputMessageContent',
|
'InputMessageContent',
|
||||||
'InputTextMessageContent',
|
'InputTextMessageContent',
|
||||||
'InputVenueMessageContent',
|
'InputVenueMessageContent',
|
||||||
|
'Invoice',
|
||||||
|
'KeyboardButton',
|
||||||
|
'KeyboardButtonPollType',
|
||||||
|
'LabeledPrice',
|
||||||
'Location',
|
'Location',
|
||||||
'ChatLocation',
|
'LoginUrl',
|
||||||
'ProximityAlertTriggered',
|
'MAX_CAPTION_LENGTH',
|
||||||
'EncryptedCredentials',
|
'MAX_FILESIZE_DOWNLOAD',
|
||||||
'PassportFile',
|
'MAX_FILESIZE_UPLOAD',
|
||||||
'EncryptedPassportElement',
|
'MAX_MESSAGES_PER_MINUTE_PER_GROUP',
|
||||||
'PassportData',
|
'MAX_MESSAGES_PER_SECOND',
|
||||||
|
'MAX_MESSAGES_PER_SECOND_PER_CHAT',
|
||||||
|
'MAX_MESSAGE_LENGTH',
|
||||||
|
'MaskPosition',
|
||||||
'Message',
|
'Message',
|
||||||
'MessageEntity',
|
'MessageEntity',
|
||||||
|
'MessageId',
|
||||||
|
'OrderInfo',
|
||||||
'ParseMode',
|
'ParseMode',
|
||||||
|
'PassportData',
|
||||||
|
'PassportElementError',
|
||||||
|
'PassportElementErrorDataField',
|
||||||
|
'PassportElementErrorFile',
|
||||||
|
'PassportElementErrorFiles',
|
||||||
|
'PassportElementErrorFrontSide',
|
||||||
|
'PassportElementErrorReverseSide',
|
||||||
|
'PassportElementErrorSelfie',
|
||||||
|
'PassportElementErrorTranslationFile',
|
||||||
|
'PassportElementErrorTranslationFiles',
|
||||||
|
'PassportElementErrorUnspecified',
|
||||||
|
'PassportFile',
|
||||||
|
'PersonalDetails',
|
||||||
'PhotoSize',
|
'PhotoSize',
|
||||||
'ReplyKeyboardRemove',
|
'Poll',
|
||||||
|
'PollAnswer',
|
||||||
|
'PollOption',
|
||||||
|
'PreCheckoutQuery',
|
||||||
|
'ProximityAlertTriggered',
|
||||||
'ReplyKeyboardMarkup',
|
'ReplyKeyboardMarkup',
|
||||||
|
'ReplyKeyboardRemove',
|
||||||
'ReplyMarkup',
|
'ReplyMarkup',
|
||||||
|
'ResidentialAddress',
|
||||||
|
'SUPPORTED_WEBHOOK_PORTS',
|
||||||
|
'SecureData',
|
||||||
|
'SecureValue',
|
||||||
|
'ShippingAddress',
|
||||||
|
'ShippingOption',
|
||||||
|
'ShippingQuery',
|
||||||
'Sticker',
|
'Sticker',
|
||||||
|
'StickerSet',
|
||||||
|
'SuccessfulPayment',
|
||||||
|
'TelegramDecryptionError',
|
||||||
'TelegramError',
|
'TelegramError',
|
||||||
'TelegramObject',
|
'TelegramObject',
|
||||||
'Update',
|
'Update',
|
||||||
|
@ -213,65 +270,7 @@ __all__ = [
|
||||||
'UserProfilePhotos',
|
'UserProfilePhotos',
|
||||||
'Venue',
|
'Venue',
|
||||||
'Video',
|
'Video',
|
||||||
'Voice',
|
|
||||||
'MAX_MESSAGE_LENGTH',
|
|
||||||
'MAX_CAPTION_LENGTH',
|
|
||||||
'SUPPORTED_WEBHOOK_PORTS',
|
|
||||||
'MAX_FILESIZE_DOWNLOAD',
|
|
||||||
'MAX_FILESIZE_UPLOAD',
|
|
||||||
'MAX_MESSAGES_PER_SECOND_PER_CHAT',
|
|
||||||
'MAX_MESSAGES_PER_SECOND',
|
|
||||||
'MAX_MESSAGES_PER_MINUTE_PER_GROUP',
|
|
||||||
'WebhookInfo',
|
|
||||||
'Animation',
|
|
||||||
'Game',
|
|
||||||
'GameHighScore',
|
|
||||||
'VideoNote',
|
'VideoNote',
|
||||||
'LabeledPrice',
|
'Voice',
|
||||||
'SuccessfulPayment',
|
'WebhookInfo',
|
||||||
'ShippingOption',
|
)
|
||||||
'ShippingAddress',
|
|
||||||
'PreCheckoutQuery',
|
|
||||||
'OrderInfo',
|
|
||||||
'Invoice',
|
|
||||||
'ShippingQuery',
|
|
||||||
'ChatPhoto',
|
|
||||||
'StickerSet',
|
|
||||||
'MaskPosition',
|
|
||||||
'CallbackGame',
|
|
||||||
'InputMedia',
|
|
||||||
'InputMediaPhoto',
|
|
||||||
'InputMediaVideo',
|
|
||||||
'PassportElementError',
|
|
||||||
'PassportElementErrorFile',
|
|
||||||
'PassportElementErrorReverseSide',
|
|
||||||
'PassportElementErrorFrontSide',
|
|
||||||
'PassportElementErrorFiles',
|
|
||||||
'PassportElementErrorDataField',
|
|
||||||
'PassportElementErrorFile',
|
|
||||||
'Credentials',
|
|
||||||
'DataCredentials',
|
|
||||||
'SecureData',
|
|
||||||
'FileCredentials',
|
|
||||||
'IdDocumentData',
|
|
||||||
'PersonalDetails',
|
|
||||||
'ResidentialAddress',
|
|
||||||
'InputMediaVideo',
|
|
||||||
'InputMediaAnimation',
|
|
||||||
'InputMediaAudio',
|
|
||||||
'InputMediaDocument',
|
|
||||||
'TelegramDecryptionError',
|
|
||||||
'PassportElementErrorSelfie',
|
|
||||||
'PassportElementErrorTranslationFile',
|
|
||||||
'PassportElementErrorTranslationFiles',
|
|
||||||
'PassportElementErrorUnspecified',
|
|
||||||
'Poll',
|
|
||||||
'PollOption',
|
|
||||||
'PollAnswer',
|
|
||||||
'LoginUrl',
|
|
||||||
'KeyboardButton',
|
|
||||||
'KeyboardButtonPollType',
|
|
||||||
'Dice',
|
|
||||||
'BotCommand',
|
|
||||||
'MessageId',
|
|
||||||
]
|
|
||||||
|
|
|
@ -31,27 +31,12 @@ from telegram import (
|
||||||
TelegramDecryptionError,
|
TelegramDecryptionError,
|
||||||
)
|
)
|
||||||
|
|
||||||
# Generated using the scope:
|
|
||||||
# {
|
# Note: All classes in telegram.credentials (except EncryptedCredentials) aren't directly tested
|
||||||
# data: [
|
# here, although they are implicitly tested. Testing for those classes was too much work and not
|
||||||
# {
|
# worth it.
|
||||||
# type: 'personal_details',
|
|
||||||
# native_names: true
|
|
||||||
# },
|
|
||||||
# {
|
|
||||||
# type: 'id_document',
|
|
||||||
# selfie: true,
|
|
||||||
# translation: true
|
|
||||||
# },
|
|
||||||
# {
|
|
||||||
# type: 'address_document',
|
|
||||||
# translation: true
|
|
||||||
# },
|
|
||||||
# 'address',
|
|
||||||
# 'email'
|
|
||||||
# ],
|
|
||||||
# v: 1
|
|
||||||
# }
|
|
||||||
RAW_PASSPORT_DATA = {
|
RAW_PASSPORT_DATA = {
|
||||||
'credentials': {
|
'credentials': {
|
||||||
'hash': 'qB4hz2LMcXYhglwz6EvXMMyI3PURisWLXl/iCmCXcSk=',
|
'hash': 'qB4hz2LMcXYhglwz6EvXMMyI3PURisWLXl/iCmCXcSk=',
|
||||||
|
|
Loading…
Reference in a new issue