Class: Telegrammer::DataTypes::Video
- Defined in:
- lib/telegrammer/data_types/video.rb
Overview
Telegram Video data type
See more at core.telegram.org/bots/api#video
Instance Attribute Summary collapse
-
#duration ⇒ Integer
Duration of the video in seconds as defined by sender.
-
#file_id ⇒ String
Unique file identifier.
-
#file_size ⇒ String
Optional.
-
#height ⇒ Integer
Video height as defined by sender.
-
#mime_type ⇒ String
Optional.
-
#thumb ⇒ Telegrammer::DataTypes::PhotoSize
Video thumbnail.
-
#width ⇒ Integer
Video width as defined by sender.
Instance Attribute Details
#duration ⇒ Integer
Duration of the video in seconds as defined by sender
14 15 16 |
# File 'lib/telegrammer/data_types/video.rb', line 14 def duration @duration end |
#file_id ⇒ String
Unique file identifier
14 15 16 |
# File 'lib/telegrammer/data_types/video.rb', line 14 def file_id @file_id end |
#file_size ⇒ String
Optional. File size
14 15 16 |
# File 'lib/telegrammer/data_types/video.rb', line 14 def file_size @file_size end |
#height ⇒ Integer
Video height as defined by sender
14 15 16 |
# File 'lib/telegrammer/data_types/video.rb', line 14 def height @height end |
#mime_type ⇒ String
Optional. Mime type of a file as defined by sender
14 15 16 |
# File 'lib/telegrammer/data_types/video.rb', line 14 def mime_type @mime_type end |
#thumb ⇒ Telegrammer::DataTypes::PhotoSize
Video thumbnail
14 15 16 |
# File 'lib/telegrammer/data_types/video.rb', line 14 def thumb @thumb end |
#width ⇒ Integer
Video width as defined by sender
14 15 16 |
# File 'lib/telegrammer/data_types/video.rb', line 14 def width @width end |