GramIO API Reference / gramio/dist / TelegramInlineQueryResultAudio
Interface: TelegramInlineQueryResultAudio
Defined in: @gramio/types/out/objects.d.ts:9401
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:9437 |
audio_url | string | A valid URL for the audio file | @gramio/types/out/objects.d.ts:9413 |
caption? | string | { toString: string; } | Optional. Caption, 0-1024 characters after entities parsing | @gramio/types/out/objects.d.ts:9421 |
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:9429 |
id | string | Unique identifier for this result, 1-64 bytes | @gramio/types/out/objects.d.ts:9409 |
input_message_content? | TelegramInputMessageContent | Optional. Content of the message to be sent instead of the audio | @gramio/types/out/objects.d.ts:9447 |
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:9425 |
performer? | string | Optional. Performer | @gramio/types/out/objects.d.ts:9433 |
reply_markup? | TelegramInlineKeyboardMarkup | { toJSON: TelegramInlineKeyboardMarkup; } | Optional. Inline keyboard attached to the message | @gramio/types/out/objects.d.ts:9441 |
title | string | Title | @gramio/types/out/objects.d.ts:9417 |
type | "audio" | Type of the result, must be audio | @gramio/types/out/objects.d.ts:9405 |