Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 1.48 KB

Video.md

File metadata and controls

34 lines (28 loc) · 1.48 KB

TelegramBotOpenapi::Video

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.
width Integer Video width as defined by sender
height Integer Video height as defined by sender
duration Integer Duration of the video in seconds as defined by sender
thumbnail PhotoSize Optional. Video thumbnail [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::Video.new(
  file_id: null,
  file_unique_id: null,
  width: null,
  height: null,
  duration: null,
  thumbnail: null,
  file_name: null,
  mime_type: null,
  file_size: null
)