Interface InputMessageVideo

A video message. Subtype of InputMessageContent.

interface InputMessageVideo {
    @type: "inputMessageVideo";
    added_sticker_file_ids: number[];
    caption: FormattedText;
    duration: number;
    has_spoiler?: boolean;
    height: number;
    self_destruct_type: MessageSelfDestructType;
    show_caption_above_media?: boolean;
    supports_streaming?: boolean;
    thumbnail: InputThumbnail;
    video: InputFile;
    width: number;
}

Properties

@type: "inputMessageVideo"
added_sticker_file_ids: number[]

File identifiers of the stickers added to the video, if applicable.

caption: FormattedText

Video caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.

duration: number

Duration of the video, in seconds.

has_spoiler?: boolean

True, if the video preview must be covered by a spoiler animation; not supported in secret chats.

height: number

Video height.

self_destruct_type: MessageSelfDestructType

Video self-destruct type; pass null if none; private chats only.

show_caption_above_media?: boolean

True, if the caption must be shown above the video; otherwise, the caption must be shown below the video; not supported in secret chats.

supports_streaming?: boolean

True, if the video is expected to be streamed.

thumbnail: InputThumbnail

Video thumbnail; pass null to skip thumbnail uploading.

video: InputFile

Video to be sent. The video is expected to be re-encoded to MPEG4 format with H.264 codec by the sender.

width: number

Video width.