StaticGramBot API

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.

Поля

file_idString
Identifier for this file, which can be used to download or reuse the file
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_sizeInteger
File size in bytes
file_dateInteger
Unix time when the file was uploaded

Минимальный JSON

JSON
{
  "file_id": "...",
  "file_unique_id": "...",
  "file_size": 1,
  "file_date": 1
}

Где используется

Описания методов и типов взяты из официальной документации Telegram Bot API (Bot API 10.3). Адрес API: https://api.staticgram.top