Defines a video
Constructor schema is available as of layer 66. Switch ยป
| Name | Type | Description |
|---|---|---|
| flags | # | Flags, see TL conditional fields |
| round_message | flags.0?true | Whether this is a round video |
| supports_streaming | flags.1?true | Whether the video supports streaming |
| nosound | flags.3?true | Whether the specified document is a video file with no audio tracks |
| duration | double | Duration in seconds |
| w | int | Video width |
| h | int | Video height |
| preload_prefix_size | flags.2?int | Number of bytes to preload when preloading videos (particularly video stories). |
| video_start_ts | flags.4?double | Floating point UNIX timestamp in seconds, indicating the frame of the video that should be used as static preview and thumbnail. |
| video_codec | flags.5?string | Codec used for the video, i.e. "h264", "h265", or "av1" |
Telegram users and channels can easily post and view stories through the API.