Class SendAudio
java.lang.Object
io.micronaut.chatbots.telegram.api.send.Send
io.micronaut.chatbots.telegram.api.send.SendAudio
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull StringgetAudio()@Nullable String@Nullable Integer@Nullable String@Nullable String@Nullable StringgetThumb()@Nullable StringgetTitle()voidvoidsetCaption(@Nullable String caption) voidsetDuration(@Nullable Integer duration) voidsetParseMode(@Nullable String parseMode) voidsetPerformer(@Nullable String performer) voidvoidMethods inherited from class io.micronaut.chatbots.telegram.api.send.Send
getChatId, getDisableNotification, getMethod, getReplyMarkup, getReplyToMessageId, setChatId, setDisableNotification, setReplyMarkup, setReplyToMessageId
-
Field Details
-
SEND_AUDIO
- See Also:
-
-
Constructor Details
-
SendAudio
public SendAudio()
-
-
Method Details
-
getAudio
- Returns:
- Audio file to send.
-
setAudio
- Parameters:
audio- Audio file to send.
-
getCaption
- Returns:
- Audio caption, 0-1024 characters.
-
setCaption
- Parameters:
caption- Audio caption, 0-1024 characters.
-
getParseMode
- Returns:
- Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.
-
setParseMode
- Parameters:
parseMode- Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.
-
getDuration
- Returns:
- Duration of the audio in seconds.
-
setDuration
- Parameters:
duration- Duration of the audio in seconds.
-
getPerformer
- Returns:
- Performer.
-
setPerformer
- Parameters:
performer- Performer.
-
getTitle
- Returns:
- Track name.
-
setTitle
- Parameters:
title- Track name.
-
getThumb
- Returns:
- Thumbnail of the file sent.
-
setThumb
- Parameters:
thumb- Thumbnail of the file sent.
-