Class Voice
java.lang.Object
io.micronaut.chatbots.telegram.api.AbstractFile
io.micronaut.chatbots.telegram.api.Voice
This object represents a voice note.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull Integer@Nullable Long@Nullable StringvoidsetDuration(@NonNull Integer duration) voidsetFileSize(@Nullable Long fileSize) voidsetMimeType(@Nullable String mimeType) toString()Methods inherited from class io.micronaut.chatbots.telegram.api.AbstractFile
getFileId, getFileUniqueId, setFileId, setFileUniqueId
-
Constructor Details
-
Voice
public Voice()
-
-
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.
-
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.
-
toString
-