GramIO API Reference / gramio/dist / TelegramInlineQueryResultCachedVoice
Interface: TelegramInlineQueryResultCachedVoice
Defined in: @gramio/types/out/objects.d.ts:7362
Represents a link to a voice message stored on the Telegram servers. By default, this voice message will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the voice message.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
caption? | string | { toString: string; } | Optional. Caption, 0-1024 characters after entities parsing | @gramio/types/out/objects.d.ts:7382 |
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:7390 |
id | string | Unique identifier for this result, 1-64 bytes | @gramio/types/out/objects.d.ts:7370 |
input_message_content? | TelegramInputMessageContent | Optional. Content of the message to be sent instead of the voice message | @gramio/types/out/objects.d.ts:7400 |
parse_mode? | "HTML" | "MarkdownV2" | "Markdown" | Optional. Mode for parsing entities in the voice message caption. See formatting options for more details. | @gramio/types/out/objects.d.ts:7386 |
reply_markup? | TelegramInlineKeyboardMarkup | { toJSON: TelegramInlineKeyboardMarkup; } | Optional. Inline keyboard attached to the message | @gramio/types/out/objects.d.ts:7394 |
title | string | Voice message title | @gramio/types/out/objects.d.ts:7378 |
type | "voice" | Type of the result, must be voice | @gramio/types/out/objects.d.ts:7366 |
voice_file_id | string | A valid file identifier for the voice message | @gramio/types/out/objects.d.ts:7374 |