Skip to main content

documentAttributeVideo

Defines a video

type tg.DocumentAttributeVideo struct { /* ... */ }

Implements DocumentAttribute.

Fields​

NameTypeRequiredDescription
RoundMessagebool—Whether this is a round video
SupportsStreamingbool—Whether the video supports streaming
Nosoundbool—Whether the specified document is a video file with no audio tracks
Durationfloat64yesDuration in seconds
WintyesVideo width
HintyesVideo height
PreloadPrefixSizeint—Number of bytes to preload when preloading videos (particularly video stories).
VideoStartTsfloat64—Floating point UNIX timestamp in seconds, indicating the frame of the video that should be used as static preview and thumbnail.
VideoCodecstring—Codec used for the video, i.e. "h264", "h265", or "av1"

References​