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:
223ID:
E8A40BD9
- Parameters:
type (
SecureValueType) – The section of the user’s Telegram Passport which has the error, one of secureValueTypePersonalDetails, secureValueTypePassport, secureValueTypeDriverLicense, secureValueTypeIdentityCard, secureValueTypeInternalPassport, secureValueTypeAddressdata_hash (
bytes) – Data hashfield (
str) – Name of the data field which has the errortext (
str) – Error message
TL Schema
secureValueErrorData#e8a40bd9
type:SecureValueType
data_hash:bytes
field:string
text:string
= SecureValueError
Parameter Tree
SecureValueErrorData
├── type →
SecureValueType│ ├──
SecureValueTypePassport│ ├──
SecureValueTypeAddress│ ├──
SecureValueTypePhone│ └──
SecureValueTypeEmail├── data_hash →
bytes├── field →
string└── text →
stringExample
SecureValueErrorData(
type=SecureValueTypePersonalDetails(),
data_hash=b"data",
field="text",
text="Open",
)