MadelineProtoDocs/docs/API_docs/constructors/secureValueErrorData.md
2019-12-27 17:48:04 +01:00

1.8 KiB

title description 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. 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'];

Or, if you're into Lua:

secureValueErrorData={_='secureValueErrorData', type=SecureValueType, data_hash='bytes', field='string', text='string'}