SecureValue#

class pyrogram.raw.types.SecureValue#

Secure value.

Constructor of SecureValue.

Details:
  • Layer: 158

  • ID: 187FA0CA

Parameters:
  • type (SecureValueType) – Secure passport value type.

  • hash (bytes) – Data hash.

  • data (SecureData, optional) – Encrypted Telegram Passport element data.

  • front_side (SecureFile, optional) – Encrypted passport file with the front side of the document.

  • reverse_side (SecureFile, optional) – Encrypted passport file with the reverse side of the document.

  • selfie (SecureFile, optional) – Encrypted passport file with a selfie of the user holding the document.

  • translation (List of SecureFile, optional) – Array of encrypted passport files with translated versions of the provided documents.

  • files (List of SecureFile, optional) – Array of encrypted passport files with photos the of the documents.

  • plain_data (SecurePlainData, optional) – Plaintext verified passport data.

Functions:

This object can be returned by 3 functions.

account.GetAllSecureValues

Get all saved Telegram Passport documents.

account.GetSecureValue

Get saved Telegram Passport document.

account.SaveSecureValue

Securely save Telegram Passport document.