Layer 220
DocumentAttributeVideo
Defines a video
constructor
documentAttributeVideo#43c57c48 flags:# round_message:flags.0?true supports_streaming:flags.1?true nosound:flags.3?true duration:double w:int h:int preload_prefix_size:flags.2?int video_start_ts:flags.4?double video_codec:flags.5?string = DocumentAttribute;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| RoundMessage | flags.0?true | Whether this is a round video |
| SupportsStreaming | 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 |
| PreloadPrefixSize | flags.2?int | Number of bytes to preload when preloading videos (particularly video stories ). |
| VideoStartTs | flags.4?double | Floating point UNIX timestamp in seconds, indicating the frame of the video that should be used as static preview and thumbnail. |
| VideoCodec | flags.5?string | Codec used for the video, i. e. "h 264", "h 265", or "av 1" |
Returns
DocumentAttributeGogram Example
// Creating DocumentAttributeVideo constructor obj := &tg.DocumentAttributeVideo{ Duration: 0.0, W: 0, H: 0, // Optional fields: // RoundMessage: true, // SupportsStreaming: true, // Nosound: true, // PreloadPrefixSize: 0, // ... more optional fields }