Class: Telegram::Bot::Types::VideoNote
- Defined in:
- sig/telegram/bot/types/video_note.rbs
Instance Attribute Summary collapse
-
#duration ⇒ Integer
readonly
Returns the value of attribute duration.
-
#file_id ⇒ String
readonly
Returns the value of attribute file_id.
-
#file_size ⇒ Integer?
readonly
Returns the value of attribute file_size.
-
#file_unique_id ⇒ String
readonly
Returns the value of attribute file_unique_id.
-
#length ⇒ Integer
readonly
Returns the value of attribute length.
-
#thumbnail ⇒ PhotoSize?
readonly
Returns the value of attribute thumbnail.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#duration ⇒ Integer (readonly)
Returns the value of attribute duration.
11 12 13 |
# File 'sig/telegram/bot/types/video_note.rbs', line 11 def duration @duration end |
#file_id ⇒ String (readonly)
Returns the value of attribute file_id.
8 9 10 |
# File 'sig/telegram/bot/types/video_note.rbs', line 8 def file_id @file_id end |
#file_size ⇒ Integer? (readonly)
Returns the value of attribute file_size.
13 14 15 |
# File 'sig/telegram/bot/types/video_note.rbs', line 13 def file_size @file_size end |
#file_unique_id ⇒ String (readonly)
Returns the value of attribute file_unique_id.
9 10 11 |
# File 'sig/telegram/bot/types/video_note.rbs', line 9 def file_unique_id @file_unique_id end |
#length ⇒ Integer (readonly)
Returns the value of attribute length.
10 11 12 |
# File 'sig/telegram/bot/types/video_note.rbs', line 10 def length @length end |
#thumbnail ⇒ PhotoSize? (readonly)
Returns the value of attribute thumbnail.
12 13 14 |
# File 'sig/telegram/bot/types/video_note.rbs', line 12 def thumbnail @thumbnail end |
Class Method Details
.new(file_id:, file_unique_id:, length:, duration:, thumbnail:, file_size:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/video_note.rbs', line 6
def self.new: (file_id: String, file_unique_id: String, length: Integer, duration: Integer, ?thumbnail: PhotoSize, ?file_size: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|