Skip to content

GramIO API Reference / gramio/dist / TelegramInlineQueryResultAudio

Interface: TelegramInlineQueryResultAudio

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

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:6920
audio_urlstringA valid URL for the audio file@gramio/types/out/objects.d.ts:6896
caption?string | { toString: string; }Optional. Caption, 0-1024 characters after entities parsing@gramio/types/out/objects.d.ts:6904
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:6912
idstringUnique identifier for this result, 1-64 bytes@gramio/types/out/objects.d.ts:6892
input_message_content?TelegramInputMessageContentOptional. Content of the message to be sent instead of the audio@gramio/types/out/objects.d.ts:6930
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:6908
performer?stringOptional. Performer@gramio/types/out/objects.d.ts:6916
reply_markup?TelegramInlineKeyboardMarkup | { toJSON: TelegramInlineKeyboardMarkup; }Optional. Inline keyboard attached to the message@gramio/types/out/objects.d.ts:6924
titlestringTitle@gramio/types/out/objects.d.ts:6900
type"audio"Type of the result, must be audio@gramio/types/out/objects.d.ts:6888