InputSecureValue

class pyrogram.raw.base.InputSecureValue

Secure value, for more info see the passport docs »

Constructors:

This base type has 1 constructor available.

InputSecureValue

Secure value, for more info see the passport docs »

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(),
    data=SecureData(
        data=b"data",
        data_hash=b"data",
        secret=b"data"
    ),
    front_side=InputSecureFileUploaded(
        id=0,
        parts=0,
        md5_checksum="text",
        file_hash=b"data",
        secret=b"data"
    ),
    reverse_side=InputSecureFileUploaded(
        id=0,
        parts=0,
        md5_checksum="text",
        file_hash=b"data",
        secret=b"data"
    ),
    selfie=InputSecureFileUploaded(
        id=0,
        parts=0,
        md5_checksum="text",
        file_hash=b"data",
        secret=b"data"
    ),
    translation=[
            InputSecureFileUploaded(
                id=0,
                parts=0,
                md5_checksum="text",
                file_hash=b"data",
                secret=b"data"
            )
        ],
    files=[
            InputSecureFileUploaded(
                id=0,
                parts=0,
                md5_checksum="text",
                file_hash=b"data",
                secret=b"data"
            )
        ],
    plain_data=SecurePlainPhone(phone="+1234567890"),
)