Types

InputPageBlockAnimation

An input animation page block.

Properties

fileName?: string

The file name to assign if applicable.

fileSize?: number

The file’s size.

mimeType?: string

The MIME type to assign if applicable.

chunkSize?: number

Size of each upload chunk in bytes.

signal?: AbortSignal

Upload abort signal.

progressId?: string

A progress ID retrieved from the method getProgressId. If specified, updates on the upload progress will be sent.

type: "animation"
animation: FileSource

The animation.

The animation’s caption.

isSpoiler?: boolean

Whether the animation is a spoiler.

isLoop?: boolean

Whether the animation is played in loop.

isAutoplay?: boolean

Whether the animation is automatically played.

duration?: number

The duration of the animation.

width?: number

The width of the animation.

height?: number

The height of the animation.

linkPreviewId?: string