Skip to content

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.

Documentation

Properties

PropertyTypeDescriptionDefined 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
idstringUnique identifier for this result, 1-64 bytes@gramio/types/out/objects.d.ts:6746
input_message_content?TelegramInputMessageContentOptional. 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
titlestringRecording 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?numberOptional. Recording duration in seconds@gramio/types/out/objects.d.ts:6770
voice_urlstringA valid URL for the voice recording@gramio/types/out/objects.d.ts:6750