Class TdApi.LinkPreviewTypeVideo
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.LinkPreviewType
dev.voroby.springframework.telegram.client.TdApi.LinkPreviewTypeVideo
- Enclosing class:
- TdApi
The link is a link to a video.
-
Field Summary
Modifier and TypeFieldDescriptionAuthor of the video.static final int
Identifier uniquely determining type of the object.int
Duration of the video, in seconds; 0 if unknown.int
Expected height of the preview.MIME type of the video file.URL of the video; may be empty if none.The video description; may be null if unknown.int
Expected width of the preview. -
Constructor Summary
ConstructorDescriptionThe link is a link to a video.LinkPreviewTypeVideo
(String url, String mimeType, TdApi.Video video, int width, int height, int duration, String author) The link is a link to a video. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Object
toString
-
Field Details
-
url
URL of the video; may be empty if none. -
mimeType
MIME type of the video file. -
video
The video description; may be null if unknown. -
width
public int widthExpected width of the preview. -
height
public int heightExpected height of the preview. -
duration
public int durationDuration of the video, in seconds; 0 if unknown. -
author
Author of the video. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
LinkPreviewTypeVideo
public LinkPreviewTypeVideo()The link is a link to a video. -
LinkPreviewTypeVideo
public LinkPreviewTypeVideo(String url, String mimeType, TdApi.Video video, int width, int height, int duration, String author) The link is a link to a video.- Parameters:
url
- URL of the video; may be empty if none.mimeType
- MIME type of the video file.video
- The video description; may be null if unknown.width
- Expected width of the preview.height
- Expected height of the preview.duration
- Duration of the video, in seconds; 0 if unknown.author
- Author of the video.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-