public static class TdApi.InputMessageVideo extends TdApi.InputMessageContent
| Modifier and Type | Field and Description |
|---|---|
int[] |
addedStickerFileIds
File identifiers of the stickers added to the video, if applicable.
|
TdApi.FormattedText |
caption
Video caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
duration
Duration of the video, in seconds.
|
boolean |
hasSpoiler
True, if the video preview must be covered by a spoiler animation; not supported in secret chats.
|
int |
height
Video height.
|
TdApi.MessageSelfDestructType |
selfDestructType
Video self-destruct type; pass null if none; private chats only.
|
boolean |
showCaptionAboveMedia
True, if the caption must be shown above the video; otherwise, the caption must be shown below the video; not supported in secret chats.
|
boolean |
supportsStreaming
True, if the video is expected to be streamed.
|
TdApi.InputThumbnail |
thumbnail
Video thumbnail; pass null to skip thumbnail uploading.
|
TdApi.InputFile |
video
Video to be sent.
|
int |
width
Video width.
|
| Constructor and Description |
|---|
InputMessageVideo()
A video message.
|
InputMessageVideo(TdApi.InputFile video,
TdApi.InputThumbnail thumbnail,
int[] addedStickerFileIds,
int duration,
int width,
int height,
boolean supportsStreaming,
TdApi.FormattedText caption,
boolean showCaptionAboveMedia,
TdApi.MessageSelfDestructType selfDestructType,
boolean hasSpoiler)
A video message.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic TdApi.InputFile video
public TdApi.InputThumbnail thumbnail
public int[] addedStickerFileIds
public int duration
public int width
public int height
public boolean supportsStreaming
public TdApi.FormattedText caption
public boolean showCaptionAboveMedia
public TdApi.MessageSelfDestructType selfDestructType
public boolean hasSpoiler
public static final int CONSTRUCTOR
public InputMessageVideo()
public InputMessageVideo(TdApi.InputFile video, TdApi.InputThumbnail thumbnail, int[] addedStickerFileIds, int duration, int width, int height, boolean supportsStreaming, TdApi.FormattedText caption, boolean showCaptionAboveMedia, TdApi.MessageSelfDestructType selfDestructType, boolean hasSpoiler)
video - Video to be sent. The video is expected to be re-encoded to MPEG4 format with H.264 codec by the sender.thumbnail - Video thumbnail; pass null to skip thumbnail uploading.addedStickerFileIds - File identifiers of the stickers added to the video, if applicable.duration - Duration of the video, in seconds.width - Video width.height - Video height.supportsStreaming - True, if the video is expected to be streamed.caption - Video caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.showCaptionAboveMedia - True, if the caption must be shown above the video; otherwise, the caption must be shown below the video; not supported in secret chats.selfDestructType - Video self-destruct type; pass null if none; private chats only.hasSpoiler - True, if the video preview must be covered by a spoiler animation; not supported in secret chats.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object