InlineQueryResultVoice

fun InlineQueryResultVoice(id: String, voiceUrl: String, title: String, caption: String? = null, parseMode: String? = null, captionEntities: List<MessageEntity> = emptyList(), voiceDuration: Int? = null, replyMarkup: InlineKeyboardMarkup? = null, inputMessageContent: InputMessageContent? = null, type: String)

Parameters

id

Unique identifier for this result, 1-64 bytes

voiceUrl

A valid URL for the voice recording

title

Recording title

caption

Optional. Caption, 0-1024 characters after entities parsing

parseMode

Optional. Mode for parsing entities in the voice message caption. See formatting options for more details.

captionEntities

Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode

voiceDuration

Optional. Recording duration in seconds

replyMarkup

Optional. Inline keyboard attached to the message

inputMessageContent

Optional. Content of the message to be sent instead of the voice recording

type

Type of the result, must be voice