Skip to content

GramIO API Reference / gramio/dist / TelegramInlineQueryResultAudio

Interface: TelegramInlineQueryResultAudio

Defined in: @gramio/types/out/objects.d.ts:6684

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.

Documentation

Properties

PropertyTypeDescriptionDefined in
audio_duration?numberOptional. Audio duration in seconds@gramio/types/out/objects.d.ts:6720
audio_urlstringA valid URL for the audio file@gramio/types/out/objects.d.ts:6696
caption?string | { toString: string; }Optional. Caption, 0-1024 characters after entities parsing@gramio/types/out/objects.d.ts:6704
caption_entities?TelegramMessageEntity[]Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode@gramio/types/out/objects.d.ts:6712
idstringUnique identifier for this result, 1-64 bytes@gramio/types/out/objects.d.ts:6692
input_message_content?TelegramInputMessageContentOptional. Content of the message to be sent instead of the audio@gramio/types/out/objects.d.ts:6730
parse_mode?"HTML" | "MarkdownV2" | "Markdown"Optional. Mode for parsing entities in the audio caption. See formatting options for more details.@gramio/types/out/objects.d.ts:6708
performer?stringOptional. Performer@gramio/types/out/objects.d.ts:6716
reply_markup?TelegramInlineKeyboardMarkup | { toJSON: TelegramInlineKeyboardMarkup; }Optional. Inline keyboard attached to the message@gramio/types/out/objects.d.ts:6724
titlestringTitle@gramio/types/out/objects.d.ts:6700
type"audio"Type of the result, must be audio@gramio/types/out/objects.d.ts:6688