Telegram Passport

PassportElementErrorDataField

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.

fields

fieldtyperequireddescription
sourcestringrequiredError source, must be data
type"personal_details" | "passport" | "driver_license" | "identity_card" | "internal_passport" | "address"requiredThe section of the user's Telegram Passport which has the error, one of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address”
field_namestringrequiredName of the data field which has the error
data_hashstringrequiredBase64-encoded data hash
messagestringrequiredError message

import

types.ts
import type { PassportElementErrorDataField } from "@yaebal/types";

used by

types