Class SendAudio
java.lang.Object
io.micronaut.chatbots.telegram.api.send.Send
io.micronaut.chatbots.telegram.api.send.SendAudio
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull String
getAudio()
@Nullable String
@Nullable Integer
@Nullable String
@Nullable String
@Nullable String
getThumb()
@Nullable String
getTitle()
void
void
setCaption
(@Nullable String caption) void
setDuration
(@Nullable Integer duration) void
setParseMode
(@Nullable String parseMode) void
setPerformer
(@Nullable String performer) void
void
Methods 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.
-