Represents a link to an MP3 audio file. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.
Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.
Constructors
new(id :
String, audio_url :
String, title :
String, type :
String = "audio", caption :
String |
Nil = nil, parse_mode :
ParseMode =
ParseMode::Markdown, caption_entities :
Array(
Tourmaline::MessageEntity) = [] of
Tourmaline::MessageEntity, performer :
String |
Nil = nil, audio_duration :
Int32 |
Int64 |
Nil = nil, reply_markup :
Tourmaline::InlineKeyboardMarkup |
Nil = nil, input_message_content :
Tourmaline::InputMessageContent |
Nil = nil)
SourceInstance methods
audio_duration
Optional. Audio duration in seconds
Sourceaudio_duration=(audio_duration :
Int32 |
Int64 |
Nil)
Optional. Audio duration in seconds
Sourceaudio_url
A valid URL for the audio file
Sourceaudio_url=(audio_url :
String)
A valid URL for the audio file
Sourcecaption
Optional. Caption, 0-1024 characters after entities parsing
Sourcecaption=(caption :
String |
Nil)
Optional. Caption, 0-1024 characters after entities parsing
Sourcecaption_entities
Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
SourceOptional. List of special entities that appear in the caption, which can be specified instead of parse_mode
Sourceid
Unique identifier for this result, 1-64 bytes
SourceUnique identifier for this result, 1-64 bytes
Sourceinput_message_content
Optional. Content of the message to be sent instead of the audio
SourceOptional. Content of the message to be sent instead of the audio
Sourceparse_mode
Optional. Mode for parsing entities in the audio caption. See formatting options for more details.
Sourceparse_mode=(parse_mode : ParseMode)
Optional. Mode for parsing entities in the audio caption. See formatting options for more details.
Sourcereply_markup
Optional. Inline keyboard attached to the message
SourceOptional. Inline keyboard attached to the message
Sourcetype
Type of the result, must be audio
SourceType of the result, must be audio
Source