SecureValue

class pyrogram.raw.types.SecureValue

Secure value.

Constructor type of SecureValue.

Details
  • Layer: 122

  • ID: 0x187fa0ca

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.

Methods

This object can be returned by 3 methods:

account.GetAllSecureValues

Get all saved Telegram Passport documents.

account.GetSecureValue

Get saved Telegram Passport document.

account.SaveSecureValue

Securely save Telegram Passport document.