Link Search Menu Expand Document

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:

NameTypeRequiredDescription
typeSecureValueTypeYesThe section of the user’s Telegram Passport which has the error, one of secureValueTypePersonalDetails, secureValueTypePassport, secureValueTypeDriverLicense, secureValueTypeIdentityCard, secureValueTypeInternalPassport, secureValueTypeAddress
data_hashbytesYesData hash
fieldstringYesName of the data field which has the error
textstringYesError message

Type: SecureValueError

Example:

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