get_document_by_hash()¶
- async Client.get_document_by_hash()¶
Get a document by its SHA256 hash.
Usable by Users Bots- Parameters:
sha256 (
bytes) – The SHA256 hash of the document.size (
int) – The size of the document in bytes.mime_type (
str) – The MIME type of the document.
- Returns:
Document– The document.
Example
doc = await app.get_document_by_hash(sha256=b"...", size=12345, mime_type="image/png")