Telegram Passport

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.

fields

fieldtyperequireddescription
file_idstringrequiredIdentifier for this file, which can be used to download or reuse the file
file_unique_idstringrequiredUnique 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_sizenumberrequiredFile size in bytes
file_datenumberrequiredUnix time when the file was uploaded

import

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

used by

types