Class: VideoNote
- Inherits:
-
Object
- Object
- VideoNote
- Defined in:
- lib/objects/video_note.rb
Overview
Monday
, August
24
2020
EAT
This object represents a video message
(available in Telegram apps as of v.4.0).
Instance Method Summary collapse
-
#duration ⇒ Object
Duration of the video in seconds as defined by sender.
-
#file_id ⇒ Object
Identifier for this file, which can be used to download or reuse the file.
-
#file_size ⇒ Object
Optional
. -
#file_unique_id ⇒ Object
Unique identifier for this file, which is supposed to be the same over time and for different bots.
-
#initialize(obj) ⇒ VideoNote
constructor
:nodoc:.
-
#length ⇒ Object
Video width and height (diameter of the video message) as defined by sender.
-
#thumb ⇒ Object
Optional
.
Constructor Details
#initialize(obj) ⇒ VideoNote
:nodoc:
11 12 13 |
# File 'lib/objects/video_note.rb', line 11 def initialize(obj) # :nodoc: @note = obj end |
Instance Method Details
#duration ⇒ Object
Duration of the video in seconds as defined by sender.
32 33 34 |
# File 'lib/objects/video_note.rb', line 32 def duration @note.duration end |
#file_id ⇒ Object
Identifier for this file, which can be used to download or reuse the file.
16 17 18 |
# File 'lib/objects/video_note.rb', line 16 def file_id @note.file_id end |
#file_size ⇒ Object
Optional
. File size
37 38 39 |
# File 'lib/objects/video_note.rb', line 37 def file_size @note.file_size end |
#file_unique_id ⇒ Object
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.
22 23 24 |
# File 'lib/objects/video_note.rb', line 22 def file_unique_id @note.file_unique_id end |
#length ⇒ Object
Video width and height (diameter of the video message) as defined by sender.
27 28 29 |
# File 'lib/objects/video_note.rb', line 27 def length @note.length end |