Class InputMediaAudio
java.lang.Object
io.micronaut.chatbots.telegram.api.InputMedia
io.micronaut.chatbots.telegram.api.InputMediaDocument
io.micronaut.chatbots.telegram.api.InputMediaAudio
Represents an audio file to be treated as music to be sent.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable Integer
@Nullable String
@Nullable String
getTitle()
void
setDuration
(@Nullable Integer duration) void
setPerformer
(@Nullable String performer) void
toString()
Methods inherited from class io.micronaut.chatbots.telegram.api.InputMediaDocument
getDisableContentTypeDetection, getThumb, setDisableContentTypeDetection, setThumb
Methods inherited from class io.micronaut.chatbots.telegram.api.InputMedia
getCaption, getCaptionEntities, getMedia, getParseMode, getType, setCaption, setCaptionEntities, setMedia, setParseMode, setType
-
Constructor Details
-
InputMediaAudio
public InputMediaAudio()
-
-
Method Details
-
getDuration
- Returns:
- Duration of the audio in seconds.
-
setDuration
- Parameters:
duration
- Duration of the audio in seconds.
-
getPerformer
- Returns:
- Performer of the audio.
-
setPerformer
- Parameters:
performer
- Performer of the audio.
-
getTitle
- Returns:
- Title of the audio
-
setTitle
- Parameters:
title
- Title of the audio
-
toString
- Overrides:
toString
in classInputMediaDocument
-