SecureValueErrorTranslationFile

class pyrogram.raw.types.SecureValueErrorTranslationFile

Represents an issue with one of the files that constitute the translation of a document. The error is considered resolved when the file changes.

Constructor of SecureValueError.

Details:
  • Layer: 223

  • ID: A1144770

Parameters:
  • type (SecureValueType) – One of secureValueTypePersonalDetails, secureValueTypePassport, secureValueTypeDriverLicense, secureValueTypeIdentityCard, secureValueTypeInternalPassport, secureValueTypeUtilityBill, secureValueTypeBankStatement, secureValueTypeRentalAgreement, secureValueTypePassportRegistration, secureValueTypeTemporaryRegistration

  • file_hash (bytes) – File hash

  • text (str) – Error message

TL Schema

secureValueErrorTranslationFile#a1144770
type:SecureValueType
file_hash:bytes
text:string

= SecureValueError

Parameter Tree

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

Example

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