Class InlineQueryResultVoice
java.lang.Object
io.github.natanimn.telebof.types.inline.InlineQueryMediaResult<InlineQueryResultVoice>
io.github.natanimn.telebof.types.inline.InlineQueryResultVoice
- All Implemented Interfaces:
InlineQueryResult,Serializable
public class InlineQueryResultVoice
extends InlineQueryMediaResult<InlineQueryResultVoice>
implements 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 to send a message with the specified content instead of the voice message.- Since:
- 3 March 2025
- Author:
- Natanim
- See Also:
-
Field Summary
FieldsFields inherited from class io.github.natanimn.telebof.types.inline.InlineQueryMediaResult
thisT -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.github.natanimn.telebof.types.inline.InlineQueryMediaResult
setCaption, setCaptionEntities, setInputMessageContent, setParseMode, setReplyMarkup
-
Field Details
-
voiceUrl
-
voiceDuration
-
title
-
-
Constructor Details
-
InlineQueryResultVoice
Required- Parameters:
id- Unique identifier for this result, 1-64 bytesvoiceUrl- A valid URL for the voice recordingtitle- Recording title
-
-
Method Details
-
setVoiceDuration
Optional- Parameters:
voiceDuration- Recording duration in seconds- Returns:
InlineQueryResultVoice
-