SecureValue
- class pyrogram.raw.types.SecureValue
Secure value
Constructor of
SecureValue.- Details:
Layer:
223ID:
187FA0CA
- Parameters:
type (
SecureValueType) – Secure passport value typehash (
bytes) – Data hashdata (
SecureData, optional) – Encrypted Telegram Passport element datafront_side (
SecureFile, optional) – Encrypted passport file with the front side of the documentreverse_side (
SecureFile, optional) – Encrypted passport file with the reverse side of the documentselfie (
SecureFile, optional) – Encrypted passport file with a selfie of the user holding the documenttranslation (List of
SecureFile, optional) – Array of encrypted passport files with translated versions of the provided documentsfiles (List of
SecureFile, optional) – Array of encrypted passport files with photos the of the documentsplain_data (
SecurePlainData, optional) – Plaintext verified passport data
- Functions:
This object can be returned by 3 functions.
Get all saved Telegram Passport documents, for more info see the passport docs »
Get saved Telegram Passport document, for more info see the passport docs »
Securely save Telegram Passport document, for more info see the passport docs »
TL Schema
secureValue#187fa0ca
flags:#
type:SecureValueType
data:flags.0?SecureData
front_side:flags.1?SecureFile
reverse_side:flags.2?SecureFile
selfie:flags.3?SecureFile
translation:flags.6?Vector<SecureFile>
files:flags.4?Vector<SecureFile>
plain_data:flags.5?SecurePlainData
hash:bytes
= SecureValue
Parameter Tree
SecureValueTypeSecureValueTypePassportSecureValueTypeAddressSecureValueTypePhoneSecureValueTypeEmailSecureData (optional)SecureDatabytesbytesbytesSecureFile (optional)SecureFileEmptySecureFilelonglonglongintintbytesbytesSecureFile (optional)SecureFileEmptySecureFilelonglonglongintintbytesbytesSecureFile (optional)SecureFileEmptySecureFilelonglonglongintintbytesbytesVector < SecureFile > (optional)SecureFileEmptySecureFilelonglonglongintintbytesbytesVector < SecureFile > (optional)SecureFileEmptySecureFilelonglonglongintintbytesbytesSecurePlainData (optional)SecurePlainPhonestringSecurePlainEmailstringbytesExample
SecureValue(
type=SecureValueTypePersonalDetails(),
hash=b"data",
)