Class: Telegram::Bot::Types::InputMediaDocument
- Defined in:
- sig/telegram/bot/types/input_media_document.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.
-
#disable_content_type_detection ⇒ Boolean?
readonly
Returns the value of attribute disable_content_type_detection.
-
#media ⇒ String
readonly
Returns the value of attribute media.
-
#parse_mode ⇒ String?
readonly
Returns the value of attribute parse_mode.
-
#thumbnail ⇒ String?
readonly
Returns the value of attribute thumbnail.
-
#type ⇒ String
readonly
Returns the value of attribute type.
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.
11 12 13 |
# File 'sig/telegram/bot/types/input_media_document.rbs', line 11 def caption @caption end |
#caption_entities ⇒ Array[MessageEntity]? (readonly)
Returns the value of attribute caption_entities.
13 14 15 |
# File 'sig/telegram/bot/types/input_media_document.rbs', line 13 def caption_entities @caption_entities end |
#disable_content_type_detection ⇒ Boolean? (readonly)
Returns the value of attribute disable_content_type_detection.
14 15 16 |
# File 'sig/telegram/bot/types/input_media_document.rbs', line 14 def disable_content_type_detection @disable_content_type_detection end |
#media ⇒ String (readonly)
Returns the value of attribute media.
9 10 11 |
# File 'sig/telegram/bot/types/input_media_document.rbs', line 9 def media @media end |
#parse_mode ⇒ String? (readonly)
Returns the value of attribute parse_mode.
12 13 14 |
# File 'sig/telegram/bot/types/input_media_document.rbs', line 12 def parse_mode @parse_mode end |
#thumbnail ⇒ String? (readonly)
Returns the value of attribute thumbnail.
10 11 12 |
# File 'sig/telegram/bot/types/input_media_document.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_document.rbs', line 8 def type @type end |
Class Method Details
.new(type:, media:, thumbnail:, caption:, parse_mode:, caption_entities:, disable_content_type_detection:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/input_media_document.rbs', line 6
def self.new: (?type: String, media: String, ?thumbnail: String, ?caption: String, ?parse_mode: String, ?caption_entities: Array[MessageEntity], ?disable_content_type_detection: bool) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|