PassportData(data, credentials, bot=None, **_kwargs)¶
Contains information about Telegram Passport data shared with the bot by the user.
To be able to decrypt this object, you must pass your
telegram.Bot. Decrypted data is then found in
decrypted_dataand the payload can be found in
telegram.EncryptedPassportElement]) – Array with encrypted information about documents and other Telegram Passport elements that was shared with the bot.
telegram.EncryptedCredentials)) – Encrypted credentials.
telegram.Bot, optional) – The Bot to use for instance methods.
dict) – Arbitrary keyword arguments.
Array with encrypted information about documents and other Telegram Passport elements that was shared with the bot.
- Lazily decrypt and return credentials that were used
to decrypt the data. This object also contains the user specified payload as decrypted_data.payload.
telegram.TelegramDecryptionError – Decryption failed. Usually due to bad private/public key but can also suggest malformed/tampered data.
- Lazily decrypt and return information
about documents and other Telegram Passport elements which were shared with the bot.