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.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
audio_duration? | number | Optional. Audio duration in seconds | @gramio/types/out/objects.d.ts:6720 |
audio_url | string | A 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 |
id | string | Unique identifier for this result, 1-64 bytes | @gramio/types/out/objects.d.ts:6692 |
input_message_content? | TelegramInputMessageContent | Optional. 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? | string | Optional. 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 |
title | string | Title | @gramio/types/out/objects.d.ts:6700 |
type | "audio" | Type of the result, must be audio | @gramio/types/out/objects.d.ts:6688 |