Skip to main content

documentAttributeVideo

Defines a video

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

Implements DocumentAttribute.

Fields

NameTypeRequiredDescription
RoundMessageboolWhether this is a round video
SupportsStreamingboolWhether the video supports streaming
NosoundboolWhether the specified document is a video file with no audio tracks
Durationfloat64yesDuration in seconds
WintyesVideo width
HintyesVideo height
PreloadPrefixSizeintNumber of bytes to preload when preloading videos (particularly video stories).
VideoStartTsfloat64Floating point UNIX timestamp in seconds, indicating the frame of the video that should be used as static preview and thumbnail.
VideoCodecstringCodec used for the video, i.e. "h264", "h265", or "av1"

References