UNPKG

typescript-telegram-bot-api

Version:

Telegram Bot API wrapper for Node.js written in TypeScript

26 lines (25 loc) 746 B
/** * ## PassportFile * This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files are in JPEG format * when decrypted and don't exceed 10MB. * @see https://core.telegram.org/bots/api#passportfile */ export type PassportFile = { /** * Identifier for this file, which can be used to download or reuse the file */ file_id: string; /** * Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used * to download or reuse the file. */ file_unique_id: string; /** * File size in bytes */ file_size: number; /** * Unix time when the file was uploaded */ file_date: number; };