SecureValueErrorData

class pyrogram.raw.types.SecureValueErrorData

Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field’s value changes.

Constructor of SecureValueError.

Details:
  • Layer: 223

  • ID: E8A40BD9

Parameters:
  • type (SecureValueType) – The section of the user’s Telegram Passport which has the error, one of secureValueTypePersonalDetails, secureValueTypePassport, secureValueTypeDriverLicense, secureValueTypeIdentityCard, secureValueTypeInternalPassport, secureValueTypeAddress

  • data_hash (bytes) – Data hash

  • field (str) – Name of the data field which has the error

  • text (str) – Error message

TL Schema

secureValueErrorData#e8a40bd9
type:SecureValueType
data_hash:bytes
field:string
text:string

= SecureValueError

Parameter Tree

SecureValueErrorData
├── typeSecureValueType
│ ├── SecureValueTypePhone
│ └── SecureValueTypeEmail
├── data_hashbytes
├── fieldstring
└── textstring

Example

SecureValueErrorData(
    type=SecureValueTypePersonalDetails(),
    data_hash=b"data",
    field="text",
    text="Open",
)