InlineQueryResultVoice
class InlineQueryResultVoice implements InlineQueryResultInterface
Represents a link to a voice recording in an .OGG container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the the voice message.
Methods
No description
Type of the result, must be voice.
Unique identifier for this result, 1-64 bytes.
A valid URL for the voice recording.
Recording title.
Optional. Caption, 0-1024 characters after entities parsing.
Optional. Mode for parsing entities in the voice message caption. See formatting options for more details.
Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode.
Optional. Recording duration in seconds.
Optional. Inline keyboard attached to the message.
Optional. Content of the message to be sent instead of the voice recording.
Details
at line 22
__construct(string $type, string $id, string $voice_url, string $title, string|null $caption = null, string|null $parse_mode = null, MessageEntity[]|null $caption_entities = null, int|null $voice_duration = null, InlineKeyboardMarkup|null $reply_markup = null, InputMessageContentInterface|null $input_message_content = null)
No description
at line 39
string
getType()
Type of the result, must be voice.
at line 47
string
getId()
Unique identifier for this result, 1-64 bytes.
at line 55
string
getVoiceUrl()
A valid URL for the voice recording.
at line 63
string
getTitle()
Recording title.
at line 71
string|null
getCaption()
Optional. Caption, 0-1024 characters after entities parsing.
at line 79
string|null
getParseMode()
Optional. Mode for parsing entities in the voice message caption. See formatting options for more details.
at line 89
array|null
getCaptionEntities()
Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode.
at line 97
int|null
getVoiceDuration()
Optional. Recording duration in seconds.
at line 105
InlineKeyboardMarkup|null
getReplyMarkup()
Optional. Inline keyboard attached to the message.
at line 113
InputMessageContentInterface|null
getInputMessageContent()
Optional. Content of the message to be sent instead of the voice recording.