Skip to content

GramIO API Reference / gramio/dist / TelegramInlineQueryResultCachedAudio

Interface: TelegramInlineQueryResultCachedAudio

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

Represents a link to an MP3 audio file stored on the Telegram servers. 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_file_idstringA valid file identifier for the audio file@gramio/types/out/objects.d.ts:7420
caption?string | { toString: string; }Optional. Caption, 0-1024 characters after entities parsing@gramio/types/out/objects.d.ts:7424
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:7432
idstringUnique identifier for this result, 1-64 bytes@gramio/types/out/objects.d.ts:7416
input_message_content?TelegramInputMessageContentOptional. Content of the message to be sent instead of the audio@gramio/types/out/objects.d.ts:7442
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:7428
reply_markup?TelegramInlineKeyboardMarkup | { toJSON: TelegramInlineKeyboardMarkup; }Optional. Inline keyboard attached to the message@gramio/types/out/objects.d.ts:7436
type"audio"Type of the result, must be audio@gramio/types/out/objects.d.ts:7412