MadelineProtoDocs/docs/API_docs/constructors/secureValueErrorData.md
2024-05-01 14:53:46 +02:00

1.7 KiB

title description nav_exclude image
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. true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: secureValueErrorData

Back to constructors index

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.

Attributes:

Name Type Required Description
type SecureValueType Yes The section of the user's Telegram Passport which has the error, one of secureValueTypePersonalDetails, secureValueTypePassport, secureValueTypeDriverLicense, secureValueTypeIdentityCard, secureValueTypeInternalPassport, secureValueTypeAddress
data_hash bytes Yes Data hash
field string Yes Name of the data field which has the error
text string Yes Error message

Type: SecureValueError

Example:

$secureValueErrorData = ['_' => 'secureValueErrorData', 'type' => SecureValueType, 'data_hash' => 'bytes', 'field' => 'string', 'text' => 'string'];