documentAttributeVideo
Defines a video
type tg.DocumentAttributeVideo struct { /* ... */ }
Implements DocumentAttribute.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
RoundMessage | bool | — | Whether this is a round video |
SupportsStreaming | bool | — | Whether the video supports streaming |
Nosound | bool | — | Whether the specified document is a video file with no audio tracks |
Duration | float64 | yes | Duration in seconds |
W | int | yes | Video width |
H | int | yes | Video height |
PreloadPrefixSize | int | — | Number of bytes to preload when preloading videos (particularly video stories). |
VideoStartTs | float64 | — | Floating point UNIX timestamp in seconds, indicating the frame of the video that should be used as static preview and thumbnail. |
VideoCodec | string | — | Codec used for the video, i.e. "h264", "h265", or "av1" |
References
- Official documentation
- Generated Go reference
- TL definition:
documentAttributeVideo#43c57c48