telegram api constructor · layer 229 · #43c57c48
documentAttributeVideo
Defines a video
definition
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 |
round_message | true | Whether this is a round video |
supports_streaming | true | Whether the video supports streaming |
nosound | 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 | int | Number of bytes to preload when preloading videos (particularly video stories). |
video_start_ts | double | Floating point UNIX timestamp in seconds, indicating the frame of the video that should be used as static preview and thumbnail. |
video_codec | string | Codec used for the video, i.e. "h264", "h265", or "av1" |
type
DocumentAttribute · other constructors: documentAttributeImageSize, documentAttributeAnimated, documentAttributeSticker, documentAttributeAudio, documentAttributeFilename, documentAttributeHasStickers, documentAttributeCustomEmoji
history
present in layers 23–229 · constructor id changed 4×
| id | layers |
|---|---|
| #5910cccb | 23–65 |
| #0ef02ce6 | 66–159 |
| #d38ff1c2 | 160–184 |
| #17399fad | 185–187 |
| #43c57c48 | 188–229 |