Class Audio
java.lang.Object
io.micronaut.chatbots.telegram.api.AbstractFile
io.micronaut.chatbots.telegram.api.Audio
This object represents an audio file to be treated as music by the Telegram clients.
- Since:
- 1.0.0
- Author:
- Sergio del Amo
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull Integer@Nullable String@Nullable Long@Nullable String@Nullable String@Nullable PhotoSizegetThumb()@Nullable StringgetTitle()voidsetDuration(@NonNull Integer duration) voidsetFileName(@Nullable String fileName) voidsetFileSize(@Nullable Long fileSize) voidsetMimeType(@Nullable String mimeType) voidsetPerformer(@Nullable String performer) voidvoidtoString()Methods inherited from class io.micronaut.chatbots.telegram.api.AbstractFile
getFileId, getFileUniqueId, setFileId, setFileUniqueId
-
Constructor Details
-
Audio
public Audio()
-
-
Method Details
-
getDuration
- Returns:
- Duration of the audio in seconds as defined by sender.
-
setDuration
- Parameters:
duration- Duration of the audio in seconds as defined by sender.
-
getPerformer
- Returns:
- Performer of the audio as defined by sender or by audio tags.
-
setPerformer
- Parameters:
performer- Performer of the audio as defined by sender or by audio tags.
-
getTitle
- Returns:
- Title of the audio as defined by sender or by audio tags.
-
setTitle
- Parameters:
title- Title of the audio as defined by sender or by audio tags.
-
getMimeType
- Returns:
- MIME type of the file as defined by sender.
-
setMimeType
- Parameters:
mimeType- MIME type of the file as defined by sender.
-
getFileSize
- Returns:
- File size
-
setFileSize
- Parameters:
fileSize- File size
-
getThumb
- Returns:
- Thumbnail of the album cover to which the music file belongs.
-
setThumb
- Parameters:
thumb- Thumbnail of the album cover to which the music file belongs.
-
getFileName
- Returns:
- Original filename as defined by sender.
-
setFileName
- Parameters:
fileName- Original filename as defined by sender.
-
toString
-