Class InlineQueryResultAudio
java.lang.Object
io.github.natanimn.telebof.types.inline.InlineQueryMediaResult<InlineQueryResultAudio>
io.github.natanimn.telebof.types.inline.InlineQueryResultAudio
- All Implemented Interfaces:
InlineQueryResult,Serializable
Represents a link to an MP3 audio file. By default, this audio file will be sent by the user.
Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.
- 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
Modifier and TypeMethodDescriptionsetAudioDuration(Integer audioDuration) OptionalsetPerformer(String performer) OptionalMethods inherited from class io.github.natanimn.telebof.types.inline.InlineQueryMediaResult
setCaption, setCaptionEntities, setInputMessageContent, setParseMode, setReplyMarkup
-
Field Details
-
title
-
audioUrl
-
performer
-
audioDuration
-
-
Constructor Details
-
InlineQueryResultAudio
Required- Parameters:
id- Unique identifier for this result, 1-64 BytesaudioUrl- A valid URL for the audio filetitle- Title
-
-
Method Details
-
setPerformer
Optional- Parameters:
performer- Performer- Returns:
InlineQueryResultAudio
-
setAudioDuration
Optional- Parameters:
audioDuration- Audio duration in seconds- Returns:
InlineQueryResultAudio
-