Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.24 KB

Document.md

File metadata and controls

28 lines (22 loc) · 1.24 KB

TelegramBotOpenapi::Document

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.
thumbnail PhotoSize Optional. Document thumbnail as defined by sender [optional]
file_name String Optional. Original filename as defined by sender [optional]
mime_type String Optional. MIME type of the file as defined by sender [optional]
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]

Example

require 'telegram-bot-openapi'

instance = TelegramBotOpenapi::Document.new(
  file_id: null,
  file_unique_id: null,
  thumbnail: null,
  file_name: null,
  mime_type: null,
  file_size: null
)