import { Bot, IPassportElementError, PassportElementError } from "./_internals.js"; /** 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. */ export class PassportElementErrorDataField extends PassportElementError implements IPassportElementErrorDataField { public constructor(data: IPassportElementErrorDataField, token?: string | Bot) { "use strict"; super(data, token); } public source!: "data"; public type!: "personal_details" | "passport" | "driver_license" | "identity_card" | "internal_passport" | "address"; public field_name!: string; public data_hash!: string; public message!: string; } /** 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. */ export interface IPassportElementErrorDataField extends IPassportElementError { /** Error source, must be *data* */ source: "data"; /** The section of the user's Telegram Passport which has the error, one of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address” */ type: "personal_details" | "passport" | "driver_license" | "identity_card" | "internal_passport" | "address"; /** Name of the data field which has the error */ field_name: string; /** Base64-encoded data hash */ data_hash: string; /** Error message */ message: string; }