GetDocumentByHash

class pyrogram.api.functions.messages.GetDocumentByHash(sha256: bytes, size: int, mime_type: str)
ID

0x338e2464

Parameters:
  • sha256bytes
  • sizeint 32-bit
  • mime_typestr
Raises:

Error

Returns:

Either DocumentEmpty or Document