Class: Telegram::Bot::Types::InputMediaVideo
- Defined in:
- sig/telegram/bot/types/input_media_video.rbs
Instance Attribute Summary collapse
-
#caption ⇒ String?
readonly
Returns the value of attribute caption.
-
#caption_entities ⇒ Array[MessageEntity]?
readonly
Returns the value of attribute caption_entities.
-
#cover ⇒ String?
readonly
Returns the value of attribute cover.
-
#duration ⇒ Integer?
readonly
Returns the value of attribute duration.
-
#has_spoiler ⇒ Boolean?
readonly
Returns the value of attribute has_spoiler.
-
#height ⇒ Integer?
readonly
Returns the value of attribute height.
-
#media ⇒ String
readonly
Returns the value of attribute media.
-
#parse_mode ⇒ String?
readonly
Returns the value of attribute parse_mode.
-
#show_caption_above_media ⇒ Boolean?
readonly
Returns the value of attribute show_caption_above_media.
-
#start_timestamp ⇒ Integer?
readonly
Returns the value of attribute start_timestamp.
-
#supports_streaming ⇒ Boolean?
readonly
Returns the value of attribute supports_streaming.
-
#thumbnail ⇒ String?
readonly
Returns the value of attribute thumbnail.
-
#type ⇒ String
readonly
Returns the value of attribute type.
-
#width ⇒ Integer?
readonly
Returns the value of attribute width.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#caption ⇒ String? (readonly)
Returns the value of attribute caption.
13 14 15 |
# File 'sig/telegram/bot/types/input_media_video.rbs', line 13 def caption @caption end |
#caption_entities ⇒ Array[MessageEntity]? (readonly)
Returns the value of attribute caption_entities.
15 16 17 |
# File 'sig/telegram/bot/types/input_media_video.rbs', line 15 def caption_entities @caption_entities end |
#cover ⇒ String? (readonly)
Returns the value of attribute cover.
11 12 13 |
# File 'sig/telegram/bot/types/input_media_video.rbs', line 11 def cover @cover end |
#duration ⇒ Integer? (readonly)
Returns the value of attribute duration.
19 20 21 |
# File 'sig/telegram/bot/types/input_media_video.rbs', line 19 def duration @duration end |
#has_spoiler ⇒ Boolean? (readonly)
Returns the value of attribute has_spoiler.
21 22 23 |
# File 'sig/telegram/bot/types/input_media_video.rbs', line 21 def has_spoiler @has_spoiler end |
#height ⇒ Integer? (readonly)
Returns the value of attribute height.
18 19 20 |
# File 'sig/telegram/bot/types/input_media_video.rbs', line 18 def height @height end |
#media ⇒ String (readonly)
Returns the value of attribute media.
9 10 11 |
# File 'sig/telegram/bot/types/input_media_video.rbs', line 9 def media @media end |
#parse_mode ⇒ String? (readonly)
Returns the value of attribute parse_mode.
14 15 16 |
# File 'sig/telegram/bot/types/input_media_video.rbs', line 14 def parse_mode @parse_mode end |
#show_caption_above_media ⇒ Boolean? (readonly)
Returns the value of attribute show_caption_above_media.
16 17 18 |
# File 'sig/telegram/bot/types/input_media_video.rbs', line 16 def show_caption_above_media @show_caption_above_media end |
#start_timestamp ⇒ Integer? (readonly)
Returns the value of attribute start_timestamp.
12 13 14 |
# File 'sig/telegram/bot/types/input_media_video.rbs', line 12 def @start_timestamp end |
#supports_streaming ⇒ Boolean? (readonly)
Returns the value of attribute supports_streaming.
20 21 22 |
# File 'sig/telegram/bot/types/input_media_video.rbs', line 20 def supports_streaming @supports_streaming end |
#thumbnail ⇒ String? (readonly)
Returns the value of attribute thumbnail.
10 11 12 |
# File 'sig/telegram/bot/types/input_media_video.rbs', line 10 def thumbnail @thumbnail end |
#type ⇒ String (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'sig/telegram/bot/types/input_media_video.rbs', line 8 def type @type end |
#width ⇒ Integer? (readonly)
Returns the value of attribute width.
17 18 19 |
# File 'sig/telegram/bot/types/input_media_video.rbs', line 17 def width @width end |
Class Method Details
.new(type:, media:, thumbnail:, cover:, start_timestamp:, caption:, parse_mode:, caption_entities:, show_caption_above_media:, width:, height:, duration:, supports_streaming:, has_spoiler:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/input_media_video.rbs', line 6
def self.new: (?type: String, media: String, ?thumbnail: String, ?cover: String, ?start_timestamp: Integer, ?caption: String, ?parse_mode: String, ?caption_entities: Array[MessageEntity], ?show_caption_above_media: bool, ?width: Integer, ?height: Integer, ?duration: Integer, ?supports_streaming: bool, ?has_spoiler: bool) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|