Skip to content

GramIO API Reference / gramio/dist / TelegramInlineQueryResultVoice

Interface: TelegramInlineQueryResultVoice

Defined in: @gramio/types/out/objects.d.ts:6938

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:6958
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:6966
idstringUnique identifier for this result, 1-64 bytes@gramio/types/out/objects.d.ts:6946
input_message_content?TelegramInputMessageContentOptional. Content of the message to be sent instead of the voice recording@gramio/types/out/objects.d.ts:6980
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:6962
reply_markup?TelegramInlineKeyboardMarkup | { toJSON: TelegramInlineKeyboardMarkup; }Optional. Inline keyboard attached to the message@gramio/types/out/objects.d.ts:6974
titlestringRecording title@gramio/types/out/objects.d.ts:6954
type"voice"Type of the result, must be voice@gramio/types/out/objects.d.ts:6942
voice_duration?numberOptional. Recording duration in seconds@gramio/types/out/objects.d.ts:6970
voice_urlstringA valid URL for the voice recording@gramio/types/out/objects.d.ts:6950