DocumentAttributeVideo
- class pyrogram.raw.types.DocumentAttributeVideo
Defines a video
Constructor of
DocumentAttribute.- Details:
Layer:
223ID:
43C57C48
- Parameters:
duration (
float64-bit) – Duration in secondsw (
int32-bit) – Video widthh (
int32-bit) – Video heightround_message (
bool, optional) – Whether this is a round videosupports_streaming (
bool, optional) – Whether the video supports streamingnosound (
bool, optional) – Whether the specified document is a video file with no audio trackspreload_prefix_size (
int32-bit, optional) – Number of bytes to preload when preloading videos (particularly video stories).video_start_ts (
float64-bit, optional) – Floating point UNIX timestamp in seconds, indicating the frame of the video that should be used as static preview and thumbnail.video_codec (
str, optional) – Codec used for the video, i.e. “h264”, “h265”, or “av1”
TL Schema
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
Parameter Tree
true (optional)true (optional)true (optional)doubleintintint (optional)double (optional)string (optional)Example
DocumentAttributeVideo(
duration=0.0,
w=0,
h=0,
)