Raw.MessageMediaDocument

Raw.MessageMediaDocument

Document (video, audio, voice, sticker, any media type except photo)

messageMediaDocument#4cf4d72d flags:# nopremium:flags.3?true spoiler:flags.4?true video:flags.6?true round:flags.7?true voice:flags.8?true document:flags.0?Document alt_document:flags.5?Document ttl_seconds:flags.2?int = MessageMedia;
export namespace Raw {
  export class MessageMediaDocument {
    constructor(params: {
      nopremium?: boolean;
      spoiler?: boolean;
      video?: boolean;
      round?: boolean;
      voice?: boolean;
      document?: Raw.TypeDocument;
      altDocument?: Raw.TypeDocument;
      ttlSeconds?: number;
    }) {}
  }
}
🚫

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

Layer: 185
Constructor ID: 0x4cf4d72d

Property

  • nopremium : boolean or undefined

    Whether this is a normal sticker, if not set this is a premium sticker and a premium sticker animation must be played.

  • spoiler : boolean or undefined

    Whether this media should be hidden behind a spoiler warning

  • video : boolean or undefined

    Whether this is a video.

  • round : boolean or undefined

    Whether this is a round video.

  • voice : boolean or undefined

    Whether this is a voice message.

  • document : Raw.TypeDocument or undefined

    Attached document

  • altDocument : Raw.TypeDocument or undefined

    Currently only used for story videos, may contain an alternative version of the story video, explicitly encoded using h.264 (in mpeg4 transport) at a lower resolution than document.

  • ttlSeconds : number or undefined

    Time to live of self-destructing document