UNPKG

typescript-telegram-bot-api

Version:

Telegram Bot API wrapper for Node.js written in TypeScript

26 lines (25 loc) 780 B
/** * ## PassportElementErrorSelfie * Represents an issue with the selfie with a document. The error is considered resolved when the file with the selfie * changes. * @see https://core.telegram.org/bots/api#passportelementerrorselfie */ export type PassportElementErrorSelfie = { /** * Error source, must be selfie */ source: 'selfie'; /** * The section of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, * “identity_card”, “internal_passport” */ type: 'passport' | 'driver_license' | 'identity_card' | 'internal_passport'; /** * Base64-encoded hash of the file with the selfie */ file_hash: string; /** * Error message */ message: string; };