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
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Integer@Nullable String@Nullable StringgetTitle()voidsetDuration(@Nullable Integer duration) voidsetPerformer(@Nullable String performer) voidtoString()Methods inherited from class io.micronaut.chatbots.telegram.api.InputMediaDocument
getDisableContentTypeDetection, getThumb, setDisableContentTypeDetection, setThumbMethods 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:
toStringin classInputMediaDocument
-