Package org.drinkless.tdlib
Class TdApi.MessageVideo
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.MessageContent
org.drinkless.tdlib.TdApi.MessageVideo
- Enclosing class:
- TdApi
A video message.
-
Field Summary
FieldsModifier and TypeFieldDescriptionAlternative qualities of the video.Video caption.static final int
Identifier uniquely determining type of the object.Cover of the video; may be null if none.boolean
True, if the video preview must be covered by a spoiler animation.boolean
True, if the video thumbnail must be blurred and the video must be shown only while tapped.boolean
True, if the caption must be shown above the video; otherwise, the caption must be shown below the video.int
Timestamp from which the video playing must start, in seconds.The video description. -
Constructor Summary
ConstructorsConstructorDescriptionA video message.MessageVideo
(TdApi.Video video, TdApi.AlternativeVideo[] alternativeVideos, TdApi.Photo cover, int startTimestamp, TdApi.FormattedText caption, boolean showCaptionAboveMedia, boolean hasSpoiler, boolean isSecret) A video message. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
video
The video description. -
alternativeVideos
Alternative qualities of the video. -
cover
Cover of the video; may be null if none. -
startTimestamp
public int startTimestampTimestamp from which the video playing must start, in seconds. -
caption
Video caption. -
showCaptionAboveMedia
public boolean showCaptionAboveMediaTrue, if the caption must be shown above the video; otherwise, the caption must be shown below the video. -
hasSpoiler
public boolean hasSpoilerTrue, if the video preview must be covered by a spoiler animation. -
isSecret
public boolean isSecretTrue, if the video thumbnail must be blurred and the video must be shown only while tapped. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
MessageVideo
public MessageVideo()A video message. -
MessageVideo
public MessageVideo(TdApi.Video video, TdApi.AlternativeVideo[] alternativeVideos, TdApi.Photo cover, int startTimestamp, TdApi.FormattedText caption, boolean showCaptionAboveMedia, boolean hasSpoiler, boolean isSecret) A video message.- Parameters:
video
- The video description.alternativeVideos
- Alternative qualities of the video.cover
- Cover of the video; may be null if none.startTimestamp
- Timestamp from which the video playing must start, in seconds.caption
- Video caption.showCaptionAboveMedia
- True, if the caption must be shown above the video; otherwise, the caption must be shown below the video.hasSpoiler
- True, if the video preview must be covered by a spoiler animation.isSecret
- True, if the video thumbnail must be blurred and the video must be shown only while tapped.
-
-
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
-