GramIO API Reference / gramio/dist / TelegramInlineQueryResultVoice
Interface: TelegramInlineQueryResultVoice
Defined in: @gramio/types/out/objects.d.ts:6738
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:6758 |
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:6766 |
id | string | Unique identifier for this result, 1-64 bytes | @gramio/types/out/objects.d.ts:6746 |
input_message_content? | TelegramInputMessageContent | Optional. Content of the message to be sent instead of the voice recording | @gramio/types/out/objects.d.ts:6780 |
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:6762 |
reply_markup? | TelegramInlineKeyboardMarkup | { toJSON: TelegramInlineKeyboardMarkup; } | Optional. Inline keyboard attached to the message | @gramio/types/out/objects.d.ts:6774 |
title | string | Recording title | @gramio/types/out/objects.d.ts:6754 |
type | "voice" | Type of the result, must be voice | @gramio/types/out/objects.d.ts:6742 |
voice_duration? | number | Optional. Recording duration in seconds | @gramio/types/out/objects.d.ts:6770 |
voice_url | string | A valid URL for the voice recording | @gramio/types/out/objects.d.ts:6750 |