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
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull Integer@Nullable Integer@NonNull Integer@Nullable PhotoSizegetThumb()voidsetDuration(@NonNull Integer duration) voidsetFileSize(@Nullable Integer fileSize) voidvoidtoString()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
-