DocumentAttributeVideo

class pyrogram.raw.types.DocumentAttributeVideo

Defines a video

Constructor of DocumentAttribute.

Details:
  • Layer: 223

  • ID: 43C57C48

Parameters:
  • duration (float 64-bit) – Duration in seconds

  • w (int 32-bit) – Video width

  • h (int 32-bit) – Video height

  • round_message (bool, optional) – Whether this is a round video

  • supports_streaming (bool, optional) – Whether the video supports streaming

  • nosound (bool, optional) – Whether the specified document is a video file with no audio tracks

  • preload_prefix_size (int 32-bit, optional) – Number of bytes to preload when preloading videos (particularly video stories).

  • video_start_ts (float 64-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

DocumentAttributeVideo
├── round_messagetrue (optional)
├── supports_streamingtrue (optional)
├── nosoundtrue (optional)
├── durationdouble
├── wint
├── hint
├── preload_prefix_sizeint (optional)
├── video_start_tsdouble (optional)
└── video_codecstring (optional)

Example

DocumentAttributeVideo(
    duration=0.0,
    w=0,
    h=0,
)