messages.getDocumentByHash

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

 اسکیمای روش از لایه 143 در دسترس است. تغییر »

Parameters

Name Type Description
sha256 bytes SHA256 of file
size long Size of the file in bytes
mime_type string Mime type

Result

Document

Both users and bots can use this method

Possible errors

Code Type Description
400 SHA256_HASH_INVALID The provided SHA256 hash is invalid.