messages.GetDocumentByHash#

class pyrogram.raw.functions.messages.GetDocumentByHash#

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

Details:
  • Layer: 158

  • ID: B1F2061F

Parameters:
  • sha256 (bytes) – SHA256 of file.

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

  • mime_type (str) – Mime type.

Returns:

Document