Raw.DecryptedMessageMediaDocument8

Raw.DecryptedMessageMediaDocument8

Document attached to a message in a secret chat.

decryptedMessageMediaDocument#b095434b thumb:bytes thumb_w:int thumb_h:int file_name:string mime_type:string size:int key:bytes iv:bytes = DecryptedMessageMedia;
export namespace Raw {
  export class DecryptedMessageMediaDocument8 {
    constructor(params: {
      thumb: Buffer;
      thumbW: number;
      thumbH: number;
      fileName: string;
      mimeType: string;
      size: number;
      key: Buffer;
      iv: Buffer;
    }) {}
  }
}
🚫

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

Layer: 185
Constructor ID: 0xb095434b

Property

  • thumb : Buffer

    Thumbnail-file contents (jpeg-file, quality 55, set in a 90x90 square)

  • thumbW : number

    Thumbnail width

  • thumbH : number

    Thumbnail height

  • fileName : string
  • mimeType : string

    File mime-type

  • size : number

    Document size (int on layer <143, long on layer >=143)

  • key : Buffer

    Key to decrypt the attached document file

  • iv : Buffer

    Initialization