messages.getDocumentByHash
Get a document by its SHA256 hash, mainly used for gifs
Example
TL schema
Parameters
Name | Type | Description |
sha256 | SHA256 of file | |
size | Size of the file in bytes | |
mime_type | Mime type |
Result
Possible errors
Code | Type | Description |
400 | SHA256_HASH_INVALID | The provided SHA256 hash is invalid |
Can bots use this methd ?
yes
Related pages
Last updated