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
| field | type | required | description |
|---|---|---|---|
source | string | required | Error source, must be data |
type | "personal_details" | "passport" | "driver_license" | "identity_card" | "internal_passport" | "address" | required | The section of the user's Telegram Passport which has the error, one of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address” |
field_name | string | required | Name of the data field which has the error |
data_hash | string | required | Base64-encoded data hash |
message | string | required | Error message |
import
import type { PassportElementErrorDataField } from "@yaebal/types";used by
types
official Bot API docs: https://core.telegram.org/bots/api/#passportelementerrordatafield