Skip to content

GramIO API Reference / gramio/dist / TelegramPassportFile

Interface: TelegramPassportFile

Defined in: @gramio/types/out/objects.d.ts:8323

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.

Documentation

Properties

PropertyTypeDescriptionDefined in
file_datenumberUnix time when the file was uploaded@gramio/types/out/objects.d.ts:8339
file_idstringIdentifier for this file, which can be used to download or reuse the file@gramio/types/out/objects.d.ts:8327
file_sizenumberFile size in bytes@gramio/types/out/objects.d.ts:8335
file_unique_idstringUnique 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.@gramio/types/out/objects.d.ts:8331