Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1.04 KB

File metadata and controls

24 lines (18 loc) · 1.04 KB

TelegramBotOpenapi::File

Properties

Name Type Description Notes
file_id String Identifier for this file, which can be used to download or reuse the file
file_unique_id String 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 Integer Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value. [optional]
file_path String Optional. File path. Use https://api.telegram.org/file/bot<token>/<file_path> to get the file. [optional]

Example

require 'telegram-bot-openapi'

instance = TelegramBotOpenapi::File.new(
  file_id: null,
  file_unique_id: null,
  file_size: null,
  file_path: null
)