A video to be sent

interface InputMediaVideo {
    caption?: InputText;
    duration?: number;
    file: InputFileLike;
    fileMime?: string;
    fileName?: string;
    fileSize?: number;
    height?: number;
    isAnimated?: boolean;
    isRound?: boolean;
    spoiler?: boolean;
    supportsStreaming?: boolean;
    thumb?: InputFileLike;
    ttlSeconds?: number;
    type: "video";
    width?: number;
}

Hierarchy (view full)

Properties

caption?: InputText

Caption of the media

duration?: number

Duration of the video in seconds

Only applicable to newly uploaded files.

File to be sent

fileMime?: string

Override MIME type for the file

Only applicable to newly uploaded files.

fileName?: string

Override file name for the file.

Only applicable to newly uploaded files.

fileSize?: number

Override file size for the file

Only applicable to newly uploaded files.

height?: number

Height of the video in pixels

Only applicable to newly uploaded files.

isAnimated?: boolean

Whether this video is an animated GIF

Only applicable to newly uploaded files.

isRound?: boolean

Whether this video is a round message (aka video note)

Only applicable to newly uploaded files.

spoiler?: boolean

Whether this video should be hidden with a spoiler

supportsStreaming?: boolean

Whether the video is suitable for streaming

Only applicable to newly uploaded files.

Thumbnail of the video.

The thumbnail should be in JPEG format and less than 200 KB in size. A thumbnail's width and height should not exceed 320 pixels. Thumbnails can't be reused and can be only uploaded as a new file.

Only applicable to newly uploaded files.

ttlSeconds?: number

TTL for the media in seconds.

Only applicable to some media types

type: "video"
width?: number

Width of the video in pixels

Only applicable to newly uploaded files.