Class: TD::Types::InputInlineQueryResult::VoiceNote
- Inherits:
-
TD::Types::InputInlineQueryResult
- Object
- Dry::Struct
- Base
- TD::Types::InputInlineQueryResult
- TD::Types::InputInlineQueryResult::VoiceNote
- Defined in:
- lib/tdlib/types/input_inline_query_result/voice_note.rb
Overview
Represents a link to an opus-encoded audio file within an OGG container, single channel audio.
Instance Attribute Summary collapse
-
#id ⇒ TD::Types::String
Unique identifier of the query result.
-
#input_message_content ⇒ TD::Types::InputMessageContent
The content of the message to be sent.
-
#reply_markup ⇒ TD::Types::ReplyMarkup
The message reply markup.
-
#title ⇒ TD::Types::String
Title of the voice note.
-
#voice_note_duration ⇒ Integer
Duration of the voice note, in seconds.
-
#voice_note_url ⇒ TD::Types::String
The URL of the voice note file.
Method Summary
Methods inherited from Base
Instance Attribute Details
#id ⇒ TD::Types::String
Unique identifier of the query result.
13 14 15 |
# File 'lib/tdlib/types/input_inline_query_result/voice_note.rb', line 13 def id @id end |
#input_message_content ⇒ TD::Types::InputMessageContent
The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageVoiceNote, inputMessageInvoice, inputMessageLocation, TD::Types::InputMessageContent::Venue or inputMessageContact.
13 14 15 |
# File 'lib/tdlib/types/input_inline_query_result/voice_note.rb', line 13 def @input_message_content end |
#reply_markup ⇒ TD::Types::ReplyMarkup
The message reply markup. Must be of type ReplyMarkup::InlineKeyboard or null.
13 14 15 |
# File 'lib/tdlib/types/input_inline_query_result/voice_note.rb', line 13 def reply_markup @reply_markup end |
#title ⇒ TD::Types::String
Title of the voice note.
13 14 15 |
# File 'lib/tdlib/types/input_inline_query_result/voice_note.rb', line 13 def title @title end |
#voice_note_duration ⇒ Integer
Duration of the voice note, in seconds.
13 14 15 |
# File 'lib/tdlib/types/input_inline_query_result/voice_note.rb', line 13 def voice_note_duration @voice_note_duration end |
#voice_note_url ⇒ TD::Types::String
The URL of the voice note file.
13 14 15 |
# File 'lib/tdlib/types/input_inline_query_result/voice_note.rb', line 13 def voice_note_url @voice_note_url end |