Skip to main content
Deno 2 is finally here šŸŽ‰ļø
Learn more
Module

x/grammy_types/passport.ts>PassportElementErrorDataField

Type declarations of the Telegram Bot API.
Latest
interface PassportElementErrorDataField
import { type PassportElementErrorDataField } from "https://deno.land/x/grammy_types@v3.16.0/passport.ts";

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.

Properties

source: "data"

Error source, must be data

type:
| "personal_details"
| "passport"
| "driver_license"
| "identity_card"
| "internal_passport"
| "address"

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

Name of the data field which has the error

data_hash: string

Base64-encoded data hash

message: string

Error message