account.SaveSecureValue

class pyrogram.raw.functions.account.SaveSecureValue

Securely save Telegram Passport document, for more info see the passport docs »

Details:
  • Layer: 223

  • ID: 899FE31D

Parameters:
  • value (InputSecureValue) – Secure value, for more info see the passport docs »

  • secure_secret_id (int 64-bit) – Passport secret hash, for more info see the passport docs »

Returns:

SecureValue

TL Schema

account.saveSecureValue#899fe31d
value:InputSecureValue
secure_secret_id:long

= SecureValue

Parameter Tree

SaveSecureValue
├── valueInputSecureValue
│ └── InputSecureValue
│ ├── typeSecureValueType
│ │ ├── SecureValueTypePassport
│ │ ├── SecureValueTypeIdentityCard
│ │ ├── SecureValueTypeAddress
│ │ ├── SecureValueTypeUtilityBill
│ │ ├── SecureValueTypePhone
│ │ └── SecureValueTypeEmail
│ ├── dataSecureData (optional)
│ │ └── SecureData
│ │ ├── databytes
│ │ ├── data_hashbytes
│ │ └── secretbytes
│ ├── front_sideInputSecureFile (optional)
│ │ ├── InputSecureFileUploaded
│ │ │ ├── idlong
│ │ │ ├── partsint
│ │ │ ├── md5_checksumstring
│ │ │ ├── file_hashbytes
│ │ │ └── secretbytes
│ │ └── InputSecureFile
│ │ ├── idlong
│ │ └── access_hashlong
│ ├── reverse_sideInputSecureFile (optional)
│ │ ├── InputSecureFileUploaded
│ │ │ ├── idlong
│ │ │ ├── partsint
│ │ │ ├── md5_checksumstring
│ │ │ ├── file_hashbytes
│ │ │ └── secretbytes
│ │ └── InputSecureFile
│ │ ├── idlong
│ │ └── access_hashlong
│ ├── selfieInputSecureFile (optional)
│ │ ├── InputSecureFileUploaded
│ │ │ ├── idlong
│ │ │ ├── partsint
│ │ │ ├── md5_checksumstring
│ │ │ ├── file_hashbytes
│ │ │ └── secretbytes
│ │ └── InputSecureFile
│ │ ├── idlong
│ │ └── access_hashlong
│ ├── translationVector < InputSecureFile > (optional)
│ │ ├── InputSecureFileUploaded
│ │ │ ├── idlong
│ │ │ ├── partsint
│ │ │ ├── md5_checksumstring
│ │ │ ├── file_hashbytes
│ │ │ └── secretbytes
│ │ └── InputSecureFile
│ │ ├── idlong
│ │ └── access_hashlong
│ ├── filesVector < InputSecureFile > (optional)
│ │ ├── InputSecureFileUploaded
│ │ │ ├── idlong
│ │ │ ├── partsint
│ │ │ ├── md5_checksumstring
│ │ │ ├── file_hashbytes
│ │ │ └── secretbytes
│ │ └── InputSecureFile
│ │ ├── idlong
│ │ └── access_hashlong
│ └── plain_dataSecurePlainData (optional)
│ ├── SecurePlainPhone
│ │ └── phonestring
│ └── SecurePlainEmail
│ └── emailstring
└── secure_secret_idlong

Example

await app.invoke(
    SaveSecureValue(
        value=InputSecureValue(
            type=SecureValueTypePersonalDetails(),
            data=None,
            front_side=None,
            reverse_side=None,
            selfie=None,
            translation=None,
            files=None,
            plain_data=None
        ),
        secure_secret_id=0,
    )
)