class InlineQueryResultAudio implements InlineQueryResultInterface

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.

Methods

__construct(string $type, string $id, string $audio_url, string $title, string|null $caption = null, string|null $parse_mode = null, MessageEntity[]|null $caption_entities = null, string|null $performer = null, int|null $audio_duration = null, InlineKeyboardMarkup|null $reply_markup = null, InputMessageContentInterface|null $input_message_content = null)

No description

string
getType()

Type of the result, must be audio.

string
getId()

Unique identifier for this result, 1-64 bytes.

string
getAudioUrl()

A valid URL for the audio file.

string
getTitle()

Title.

string|null
getCaption()

Optional. Caption, 0-1024 characters after entities parsing.

string|null
getParseMode()

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

array|null
getCaptionEntities()

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

string|null
getPerformer()

Optional. Performer.

int|null
getAudioDuration()

Optional. Audio duration in seconds.

InlineKeyboardMarkup|null
getReplyMarkup()

Optional. Inline keyboard attached to the message.

InputMessageContentInterface|null
getInputMessageContent()

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

Details

at line 23
__construct(string $type, string $id, string $audio_url, string $title, string|null $caption = null, string|null $parse_mode = null, MessageEntity[]|null $caption_entities = null, string|null $performer = null, int|null $audio_duration = null, InlineKeyboardMarkup|null $reply_markup = null, InputMessageContentInterface|null $input_message_content = null)

No description

Parameters

string $type
string $id
string $audio_url
string $title
string|null $caption
string|null $parse_mode
MessageEntity[]|null $caption_entities
string|null $performer
int|null $audio_duration
InlineKeyboardMarkup|null $reply_markup
InputMessageContentInterface|null $input_message_content

at line 41
string getType()

Type of the result, must be audio.

Return Value

string

at line 49
string getId()

Unique identifier for this result, 1-64 bytes.

Return Value

string

at line 57
string getAudioUrl()

A valid URL for the audio file.

Return Value

string

at line 65
string getTitle()

Title.

Return Value

string

at line 73
string|null getCaption()

Optional. Caption, 0-1024 characters after entities parsing.

Return Value

string|null

at line 81
string|null getParseMode()

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

Return Value

string|null

at line 91
array|null getCaptionEntities()

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

Return Value

array|null

at line 99
string|null getPerformer()

Optional. Performer.

Return Value

string|null

at line 107
int|null getAudioDuration()

Optional. Audio duration in seconds.

Return Value

int|null

at line 115
InlineKeyboardMarkup|null getReplyMarkup()

Optional. Inline keyboard attached to the message.

Return Value

InlineKeyboardMarkup|null

at line 123
InputMessageContentInterface|null getInputMessageContent()

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

Return Value

InputMessageContentInterface|null