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
-
Method Summary
Modifier and TypeMethodDescription@NonNull Integer
@Nullable Long
@Nullable String
void
setDuration
(@NonNull Integer duration) void
setFileSize
(@Nullable Long fileSize) void
setMimeType
(@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
-