Raw.messages.GetDocumentByHash

Raw.messages.GetDocumentByHash

Get a document by its sha256 hash, mainly used for gifs

messages.getDocumentByHash#b1f2061f sha256:bytes size:long mime_type:string = Document;
export namespace Raw {
  export namespace messages {
    export class GetDocumentByHash {
      constructor(params: { sha256: Buffer; size: bigint; mimeType: string }) {}
    }
  }
}

This is a function constructor, you can use it as method when call invoke

Layer: 185
Constructor ID: 0xb1f2061f

Property

  • sha256 : Buffer

    Sha256 of file

  • size : bigint

    Size of the file in bytes

  • mimeType : string

    Mime type

Results

Raw.TypeDocument

Bots can use