- class telegram.PassportData(data, credentials, *, api_kwargs=None)¶
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
Array with encrypted information about documents and other Telegram Passport elements that was shared with the bot.
Changed in version 20.0: Accepts any
collections.abc.Sequenceas input instead of just a list. The input is converted to a tuple.
Changed in version 20.0: This attribute is now an immutable tuple.
- property decrypted_credentials¶
- Lazily decrypt and return credentials that were used
to decrypt the data. This object also contains the user specified payload as decrypted_data.payload.
- property decrypted_data¶
- Lazily decrypt and return information
about documents and other Telegram Passport elements which were shared with the bot.
Changed in version 20.0: Returns a tuple instead of a list.