InlineQueryResultAudio

data class InlineQueryResultAudio(id: String, audioUrl: String, title: String, caption: String?, parseMode: String?, captionEntities: List<MessageEntity>, performer: String?, audioDuration: Int?, replyMarkup: InlineKeyboardMarkup?, inputMessageContent: InputMessageContent?, type: String) : 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.

Parameters

id

Unique identifier for this result, 1-64 bytes

audioUrl

A valid URL for the audio file

title

Title

caption

Optional. Caption, 0-1024 characters after entities parsing

parseMode

Optional. Mode for parsing entities in the audio 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

performer

Optional. Performer

audioDuration

Optional. Audio duration in seconds

replyMarkup

Optional. Inline keyboard attached to the message

inputMessageContent

Optional. Content of the message to be sent instead of the audio

type

Type of the result, must be audio

Constructors

InlineQueryResultAudio
Link copied to clipboard
common
fun InlineQueryResultAudio(id: String, audioUrl: String, title: String, caption: String? = null, parseMode: String? = null, captionEntities: List<MessageEntity> = emptyList(), performer: String? = null, audioDuration: Int? = null, replyMarkup: InlineKeyboardMarkup? = null, inputMessageContent: InputMessageContent? = null, type: String)
Unique identifier for this result, 1-64 bytes

Functions

component1
Link copied to clipboard
common
operator fun component1(): String
component10
Link copied to clipboard
common
operator fun component10(): InputMessageContent?
component11
Link copied to clipboard
common
operator fun component11(): String
component2
Link copied to clipboard
common
operator fun component2(): String
component3
Link copied to clipboard
common
operator fun component3(): String
component4
Link copied to clipboard
common
operator fun component4(): String?
component5
Link copied to clipboard
common
operator fun component5(): String?
component6
Link copied to clipboard
common
operator fun component6(): List<MessageEntity>
component7
Link copied to clipboard
common
operator fun component7(): String?
component8
Link copied to clipboard
common
operator fun component8(): Int?
component9
Link copied to clipboard
common
operator fun component9(): InlineKeyboardMarkup?
copy
Link copied to clipboard
common
fun copy(id: String, audioUrl: String, title: String, caption: String? = null, parseMode: String? = null, captionEntities: List<MessageEntity> = emptyList(), performer: String? = null, audioDuration: Int? = null, replyMarkup: InlineKeyboardMarkup? = null, inputMessageContent: InputMessageContent? = null, type: String): InlineQueryResultAudio
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

audioDuration
Link copied to clipboard
common
val audioDuration: Int? = null
Optional.
audioUrl
Link copied to clipboard
common
val audioUrl: String
A valid URL for the audio file
caption
Link copied to clipboard
common
val caption: String? = null
Optional.
captionEntities
Link copied to clipboard
common
val captionEntities: List<MessageEntity>
Optional.
id
Link copied to clipboard
common
val id: String
Unique identifier for this result, 1-64 bytes
inputMessageContent
Link copied to clipboard
common
val inputMessageContent: InputMessageContent? = null
Optional.
parseMode
Link copied to clipboard
common
val parseMode: String? = null
Optional.
performer
Link copied to clipboard
common
val performer: String? = null
Optional.
replyMarkup
Link copied to clipboard
common
val replyMarkup: InlineKeyboardMarkup? = null
Optional.
title
Link copied to clipboard
common
val title: String
Title
type
Link copied to clipboard
common
val type: String
Type of the result, must be audio