Constructor: 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.
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'];