Class InlineQueryResultVoice
java.lang.Object
io.github.natanimn.telebof.types.inline.InlineQueryResultVoice
- All Implemented Interfaces:
- InlineQueryResult,- Serializable
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 
InlineQueryMediaResult.inputMessageContent(io.github.natanimn.telebof.types.input.InputTextMessageContent) to send a message with the specified content instead of the the voice message.- Since:
- 3 March 2025
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescription
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionOptionalcaptionEntities(MessageEntity[] caption_entities) OptionalinputMessageContent(InputTextMessageContent input_message_content) OptionalOptionalreplyMarkup(InlineKeyboardMarkup keyboard) OptionalvoiceDuration(int voice_duration) Optional
- 
Field Details- 
type
- 
id
- 
caption
- 
parse_mode
- 
caption_entities
- 
input_message_content
- 
reply_markup
 
- 
- 
Constructor Details- 
InlineQueryResultVoice
 
- 
- 
Method Details- 
voiceDurationOptional- Parameters:
- voice_duration- Recording duration in seconds
- Returns:
- InlineQueryResultVoice
 
- 
inputMessageContentOptional- Parameters:
- input_message_content- Content of the message to be sent instead of the media(photo, audio, voice, etc)
- Returns:
- T
 
- 
replyMarkupOptional- Parameters:
- keyboard-- Inline keyboardattached to the message
- Returns:
- T
 
- 
captionOptional- Parameters:
- caption- Caption of the photo to be sent, 0-1024 characters after entities parsing
- Returns:
- T
 
- 
captionEntitiesOptional- Parameters:
- caption_entities- List of special entities that appear in the caption, which can be specified instead of- parseMode(io.github.natanimn.telebof.enums.ParseMode)
- Returns:
- T
 
- 
parseModeOptional- Parameters:
- parse_mode- Mode for parsing entities in the caption
- Returns:
- T
 
 
-