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
| field | type | required | description |
|---|---|---|---|
file_id | string | required | Identifier for this file, which can be used to download or reuse the file |
file_unique_id | string | required | 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_size | number | required | File size in bytes |
file_date | number | required | Unix time when the file was uploaded |
import
import type { PassportFile } from "@yaebal/types";used by
types
official Bot API docs: https://core.telegram.org/bots/api/#passportfile