telegramx.js

PassportElementErrorDataField

interface

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.

Declaration

interface PassportElementErrorDataField 

Properties

data_hashproperty#
data_hash: string;

Base64-encoded data hash

field_nameproperty#
field_name: string;

Name of the data field which has the error

messageproperty#
message: string;

Error message

sourceproperty#
source: 'data';

Error source, must be data

typeproperty#
type: string;

The section of the user's Telegram Passport which has the error, one of "personal_details", "passport", "driver_license", "identity_card", "internal_passport", "address"