Class VideoNote
java.lang.Object
io.micronaut.chatbots.telegram.api.AbstractFile
io.micronaut.chatbots.telegram.api.VideoNote
This object represents a video message (available in Telegram apps as of v.4.0).
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull Integer
@Nullable Integer
@NonNull Integer
@Nullable PhotoSize
getThumb()
void
setDuration
(@NonNull Integer duration) void
setFileSize
(@Nullable Integer fileSize) void
void
toString()
Methods inherited from class io.micronaut.chatbots.telegram.api.AbstractFile
getFileId, getFileUniqueId, setFileId, setFileUniqueId
-
Constructor Details
-
VideoNote
public VideoNote()
-
-
Method Details
-
getLength
- Returns:
- Video width and height (diameter of the video message) as defined by sender.
-
setLength
- Parameters:
length
- Video width and height (diameter of the video message) as defined by sender.
-
getDuration
- Returns:
- Duration of the video in seconds as defined by sender.
-
setDuration
- Parameters:
duration
- Duration of the video in seconds as defined by sender.
-
getThumb
- Returns:
- Video thumbnail.
-
setThumb
- Parameters:
thumb
- Video thumbnail.
-
getFileSize
- Returns:
- File size.
-
setFileSize
- Parameters:
fileSize
- File size.
-
toString
-