Raw.DocumentAttributeVideo

Raw.DocumentAttributeVideo

Defines a video

documentAttributeVideo#17399fad 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 = DocumentAttribute;
export namespace Raw {
  export class DocumentAttributeVideo {
    constructor(params: {
      roundMessage?: boolean;
      supportsStreaming?: boolean;
      nosound?: boolean;
      duration: number;
      w: number;
      h: number;
      preloadPrefixSize?: number;
      videoStartTs?: number;
    }) {}
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 185
Constructor ID: 0x17399fad

Property

  • roundMessage : boolean or undefined

    Whether this is a round video

  • supportsStreaming : boolean or undefined

    Whether the video supports streaming

  • nosound : boolean or undefined

    Whether the specified document is a video file with no audio tracks (a gif animation (even as mpeg4), for example)

  • duration : number

    Duration in seconds

  • w : number

    Video width

  • h : number

    Video height

  • preloadPrefixSize : number or undefined

    Number of bytes to preload when preloading videos (particularly video stories).

  • videoStartTs : number or undefined