InputPollMediaAnimation

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.

type: "animation"
animation: FileSource

The animation.

thumbnail?: FileSource

A thumbnail to assign. Cannot be a URL.

duration?: number

The duration of the animation in seconds.

width?: number

The width of the animation file.

height?: number

The height of the animation file.

isSpoiler?: boolean

Whether to mark the media as a spoiler.