Class: Telegram::Bot::Types::InlineQueryResultAudio
- Defined in:
- sig/telegram/bot/types/inline_query_result_audio.rbs
Instance Attribute Summary collapse
-
#audio_duration ⇒ Integer?
readonly
Returns the value of attribute audio_duration.
-
#audio_url ⇒ String
readonly
Returns the value of attribute audio_url.
-
#caption ⇒ String?
readonly
Returns the value of attribute caption.
-
#caption_entities ⇒ Array[MessageEntity]?
readonly
Returns the value of attribute caption_entities.
-
#id ⇒ String
readonly
Returns the value of attribute id.
-
#input_message_content ⇒ input_message_content?
readonly
Returns the value of attribute input_message_content.
-
#parse_mode ⇒ String?
readonly
Returns the value of attribute parse_mode.
-
#performer ⇒ String?
readonly
Returns the value of attribute performer.
-
#reply_markup ⇒ InlineKeyboardMarkup?
readonly
Returns the value of attribute reply_markup.
-
#title ⇒ String
readonly
Returns the value of attribute title.
-
#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
#audio_duration ⇒ Integer? (readonly)
Returns the value of attribute audio_duration.
16 17 18 |
# File 'sig/telegram/bot/types/inline_query_result_audio.rbs', line 16 def audio_duration @audio_duration end |
#audio_url ⇒ String (readonly)
Returns the value of attribute audio_url.
10 11 12 |
# File 'sig/telegram/bot/types/inline_query_result_audio.rbs', line 10 def audio_url @audio_url end |
#caption ⇒ String? (readonly)
Returns the value of attribute caption.
12 13 14 |
# File 'sig/telegram/bot/types/inline_query_result_audio.rbs', line 12 def caption @caption end |
#caption_entities ⇒ Array[MessageEntity]? (readonly)
Returns the value of attribute caption_entities.
14 15 16 |
# File 'sig/telegram/bot/types/inline_query_result_audio.rbs', line 14 def caption_entities @caption_entities end |
#id ⇒ String (readonly)
Returns the value of attribute id.
9 10 11 |
# File 'sig/telegram/bot/types/inline_query_result_audio.rbs', line 9 def id @id end |
#input_message_content ⇒ input_message_content? (readonly)
Returns the value of attribute input_message_content.
18 19 20 |
# File 'sig/telegram/bot/types/inline_query_result_audio.rbs', line 18 def @input_message_content end |
#parse_mode ⇒ String? (readonly)
Returns the value of attribute parse_mode.
13 14 15 |
# File 'sig/telegram/bot/types/inline_query_result_audio.rbs', line 13 def parse_mode @parse_mode end |
#performer ⇒ String? (readonly)
Returns the value of attribute performer.
15 16 17 |
# File 'sig/telegram/bot/types/inline_query_result_audio.rbs', line 15 def performer @performer end |
#reply_markup ⇒ InlineKeyboardMarkup? (readonly)
Returns the value of attribute reply_markup.
17 18 19 |
# File 'sig/telegram/bot/types/inline_query_result_audio.rbs', line 17 def reply_markup @reply_markup end |
#title ⇒ String (readonly)
Returns the value of attribute title.
11 12 13 |
# File 'sig/telegram/bot/types/inline_query_result_audio.rbs', line 11 def title @title end |
#type ⇒ String (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'sig/telegram/bot/types/inline_query_result_audio.rbs', line 8 def type @type end |
Class Method Details
.new(type:, id:, audio_url:, title:, caption:, parse_mode:, caption_entities:, performer:, audio_duration:, reply_markup:, input_message_content:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/inline_query_result_audio.rbs', line 6
def self.new: (?type: String, id: String, audio_url: String, title: String, ?caption: String, ?parse_mode: String, ?caption_entities: Array[MessageEntity], ?performer: String, ?audio_duration: Integer, ?reply_markup: InlineKeyboardMarkup, ?input_message_content: input_message_content) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|