InputSecureValue

class pyrogram.raw.types.InputSecureValue

Secure value, for more info see the passport docs »

Constructor of InputSecureValue.

Details:
  • Layer: 227

  • 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
├── type → SecureValueType
│ ├── SecureValueTypePhone
│ └── SecureValueTypeEmail
├── data → SecureData (optional)
│ └── SecureData
│ ├── data → bytes
│ ├── data_hash → bytes
│ └── secret → bytes
├── front_side → InputSecureFile (optional)
│ │ ├── id → long
│ │ ├── parts → int
│ │ ├── md5_checksum → string
│ │ ├── file_hash → bytes
│ │ └── secret → bytes
│ └── InputSecureFile
│ ├── id → long
│ └── access_hash → long
├── reverse_side → InputSecureFile (optional)
│ │ ├── id → long
│ │ ├── parts → int
│ │ ├── md5_checksum → string
│ │ ├── file_hash → bytes
│ │ └── secret → bytes
│ └── InputSecureFile
│ ├── id → long
│ └── access_hash → long
├── selfie → InputSecureFile (optional)
│ │ ├── id → long
│ │ ├── parts → int
│ │ ├── md5_checksum → string
│ │ ├── file_hash → bytes
│ │ └── secret → bytes
│ └── InputSecureFile
│ ├── id → long
│ └── access_hash → long
├── translation → Vector < InputSecureFile > (optional)
│ │ ├── id → long
│ │ ├── parts → int
│ │ ├── md5_checksum → string
│ │ ├── file_hash → bytes
│ │ └── secret → bytes
│ └── InputSecureFile
│ ├── id → long
│ └── access_hash → long
├── files → Vector < InputSecureFile > (optional)
│ │ ├── id → long
│ │ ├── parts → int
│ │ ├── md5_checksum → string
│ │ ├── file_hash → bytes
│ │ └── secret → bytes
│ └── InputSecureFile
│ ├── id → long
│ └── access_hash → long
└── plain_data → SecurePlainData (optional)
│ └── phone → string
└── email → string

Example

InputSecureValue(
    type=SecureValueTypePersonalDetails(),
)