Class InlineQueryResultCachedVoice
java.lang.Object
io.github.natanimn.telebof.types.inline.InlineQueryMediaResult<InlineQueryResultCachedVoice>
io.github.natanimn.telebof.types.inline.InlineQueryResultCachedVoice
- All Implemented Interfaces:
InlineQueryResult,Serializable
public class InlineQueryResultCachedVoice
extends InlineQueryMediaResult<InlineQueryResultCachedVoice>
Represents a link to a voice message stored on the Telegram servers. By default, this voice message will be sent by the user.
Alternatively, you can use
InlineQueryMediaResult.setInputMessageContent(io.github.natanimn.telebof.types.input.InputTextMessageContent) 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
ConstructorsConstructorDescriptionInlineQueryResultCachedVoice(String id, String voiceFileId, String title) Required -
Method Summary
Methods inherited from class io.github.natanimn.telebof.types.inline.InlineQueryMediaResult
setCaption, setCaptionEntities, setInputMessageContent, setParseMode, setReplyMarkup
-
Field Details
-
voiceFileId
-
title
-
-
Constructor Details
-
InlineQueryResultCachedVoice
Required- Parameters:
id- Unique identifier for this result, 1-64 bytesvoiceFileId- A valid file identifier for the voice messagetitle- Voice message title
-