SecureValueErrorSelfie

class pyrogram.raw.types.SecureValueErrorSelfie

Represents an issue with the selfie with a document. The error is considered resolved when the file with the selfie changes.

Constructor of SecureValueError.

Details:
  • Layer: 223

  • ID: E537CED6

Parameters:
  • type (SecureValueType) – One of secureValueTypePassport, secureValueTypeDriverLicense, secureValueTypeIdentityCard, secureValueTypeInternalPassport

  • file_hash (bytes) – File hash

  • text (str) – Error message

TL Schema

secureValueErrorSelfie#e537ced6
type:SecureValueType
file_hash:bytes
text:string

= SecureValueError

Parameter Tree

SecureValueErrorSelfie
├── typeSecureValueType
│ ├── SecureValueTypePhone
│ └── SecureValueTypeEmail
├── file_hashbytes
└── textstring

Example

SecureValueErrorSelfie(
    type=SecureValueTypePersonalDetails(),
    file_hash=b"data",
    text="Open",
)