InputSecureValue

class pyrogram.raw.types.InputSecureValue

Secure value, for more info see the passport docs »

Constructor of InputSecureValue.

Details:
  • Layer: 223

  • ID: DB21D0A7

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

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

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

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

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

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

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

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

TL Schema

inputSecureValue#db21d0a7
flags:#
type:SecureValueType
data:flags.0?SecureData
front_side:flags.1?InputSecureFile
reverse_side:flags.2?InputSecureFile
selfie:flags.3?InputSecureFile
translation:flags.6?Vector<InputSecureFile>
files:flags.4?Vector<InputSecureFile>
plain_data:flags.5?SecurePlainData

= InputSecureValue

Parameter Tree

InputSecureValue
├── typeSecureValueType
│ ├── SecureValueTypePhone
│ └── SecureValueTypeEmail
├── dataSecureData (optional)
│ └── SecureData
│ ├── databytes
│ ├── data_hashbytes
│ └── secretbytes
├── front_sideInputSecureFile (optional)
│ │ ├── idlong
│ │ ├── partsint
│ │ ├── md5_checksumstring
│ │ ├── file_hashbytes
│ │ └── secretbytes
│ └── InputSecureFile
│ ├── idlong
│ └── access_hashlong
├── reverse_sideInputSecureFile (optional)
│ │ ├── idlong
│ │ ├── partsint
│ │ ├── md5_checksumstring
│ │ ├── file_hashbytes
│ │ └── secretbytes
│ └── InputSecureFile
│ ├── idlong
│ └── access_hashlong
├── selfieInputSecureFile (optional)
│ │ ├── idlong
│ │ ├── partsint
│ │ ├── md5_checksumstring
│ │ ├── file_hashbytes
│ │ └── secretbytes
│ └── InputSecureFile
│ ├── idlong
│ └── access_hashlong
├── translationVector < InputSecureFile > (optional)
│ │ ├── idlong
│ │ ├── partsint
│ │ ├── md5_checksumstring
│ │ ├── file_hashbytes
│ │ └── secretbytes
│ └── InputSecureFile
│ ├── idlong
│ └── access_hashlong
├── filesVector < InputSecureFile > (optional)
│ │ ├── idlong
│ │ ├── partsint
│ │ ├── md5_checksumstring
│ │ ├── file_hashbytes
│ │ └── secretbytes
│ └── InputSecureFile
│ ├── idlong
│ └── access_hashlong
└── plain_dataSecurePlainData (optional)
│ └── phonestring
└── emailstring

Example

InputSecureValue(
    type=SecureValueTypePersonalDetails(),
)