- class telegram.PassportFile(file_id, file_unique_id, file_date, file_size, credentials=None, *, api_kwargs=None)¶
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.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
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.
- classmethod de_json_decrypted(data, bot, credentials)¶
telegram.TelegramObject.de_json()that also takes into account passport credentials.
- classmethod de_list_decrypted(data, bot, credentials)¶
telegram.TelegramObject.de_list()that also takes into account passport credentials.
Changed in version 20.0:
Returns a tuple instead of a list.
Filters out any
- async get_file(*, read_timeout=None, write_timeout=None, connect_timeout=None, pool_timeout=None, api_kwargs=None)¶
For the documentation of the arguments, please see