GramIO API Reference / gramio/dist / TelegramInlineQueryResultVoice
Interface: TelegramInlineQueryResultVoice
Defined in: @gramio/types/out/objects.d.ts:9455
Represents a link to a voice recording in an .OGG container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the 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:9475 |
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:9483 |
id | string | Unique identifier for this result, 1-64 bytes | @gramio/types/out/objects.d.ts:9463 |
input_message_content? | TelegramInputMessageContent | Optional. Content of the message to be sent instead of the voice recording | @gramio/types/out/objects.d.ts:9497 |
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:9479 |
reply_markup? | TelegramInlineKeyboardMarkup | { toJSON: TelegramInlineKeyboardMarkup; } | Optional. Inline keyboard attached to the message | @gramio/types/out/objects.d.ts:9491 |
title | string | Recording title | @gramio/types/out/objects.d.ts:9471 |
type | "voice" | Type of the result, must be voice | @gramio/types/out/objects.d.ts:9459 |
voice_duration? | number | Optional. Recording duration in seconds | @gramio/types/out/objects.d.ts:9487 |
voice_url | string | A valid URL for the voice recording | @gramio/types/out/objects.d.ts:9467 |