GetDocumentByHash

class pyrogram.raw.functions.messages.GetDocumentByHash

Get a document by its SHA256 hash, mainly used for gifs.

Details
  • Layer: 126

  • ID: 0x338e2464

Parameters
  • sha256 (bytes) – SHA256 of file.

  • size (int 32-bit) – Size of the file in bytes.

  • mime_type (str) – Mime type.

Returns

Document – A document.