InlineQueryResultAudio

data class InlineQueryResultAudio(type: String, id: String, audio_url: String, title: String, caption: String?, parse_mode: ParseMode?, caption_entities: List<MessageEntity>?, performer: String?, audio_duration: Long?, reply_markup: InlineKeyboardMarkup?, input_message_content: InputMessageContent?) : InlineQueryResult

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

InlineQueryResultAudio
Link copied to clipboard
fun InlineQueryResultAudio(type: String, id: String, audio_url: String, title: String, caption: String? = null, parse_mode: ParseMode? = null, caption_entities: List<MessageEntity>? = null, performer: String? = null, audio_duration: Long? = null, reply_markup: InlineKeyboardMarkup? = null, input_message_content: InputMessageContent? = null)

Properties

audio_duration
Link copied to clipboard
val audio_duration: Long? = null
Optional.
audio_url
Link copied to clipboard
val audio_url: String
A valid URL for the audio file
caption
Link copied to clipboard
val caption: String? = null
Optional.
caption_entities
Link copied to clipboard
val caption_entities: List<MessageEntity>? = null
Optional.
id
Link copied to clipboard
val id: String
Unique identifier for this result, 1-64 bytes
input_message_content
Link copied to clipboard
val input_message_content: InputMessageContent? = null
Optional.
parse_mode
Link copied to clipboard
val parse_mode: ParseMode? = null
Optional.
performer
Link copied to clipboard
val performer: String? = null
Optional.
reply_markup
Link copied to clipboard
val reply_markup: InlineKeyboardMarkup? = null
Optional.
title
Link copied to clipboard
val title: String
Title
type
Link copied to clipboard
val type: String
Type of the result, must be audio