InputMediaVideo

Properties

fileName?: string

The file name to assign if applicable.

mimeType?: string

The mime type to assign if applicable.

chunkSize?: number

Size of each upload chunk in bytes.

signal?: AbortSignal

Upload abort signal.

caption?: string

The caption of the media.

captionEntities?: MessageEntity[]

The entities of media’s caption.

parseMode?: ParseMode

Override the parse mode used for the media’s caption.

video: FileSource
DISCRIMINATOR

The video.

thumbnail?: FileSource

A thumbnail to assign. Cannot be a URL.

duration?: number

The duration of the video in seconds.

width?: number

The width of the photo in pixels.

height?: number

The height of the photo in pixels.

supportsStreaming?: boolean

Whether the video is suitable for streaming.

hasSpoiler?: boolean

Whether to mark the media as a spoiler.

selfDestruct?: SelfDestructOption