Layer 227
constructor
documentAttributeVideo#5910cccb duration:int w:int h:int = DocumentAttribute;

Parameters

Name Type Description
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"

Gogram Example

// Creating DocumentAttributeVideo constructor
obj := &tg.DocumentAttributeVideo{
    RoundMessage: nil,
    SupportsStreaming: nil,
    Nosound: nil,
    Duration: 3.14159,
    W: 42,
    H: 42,
    // ... more required fields
}