Layer 220
method Users Bots
messages.getDocumentByHash#b1f2061f sha256:bytes size:long mime_type:string = Document;

Parameters

Name Type Description
Sha256 bytes SHA 256 of file
Size long Size of the file in bytes
MimeType string Mime type

Returns

Document

Possible Errors

Code Type Description
400 SHA256_HASH_INVALID The provided SHA 256 hash is invalid.

Gogram Example

// MessagesGetDocumentByHash - positional arguments
result, err := client.MessagesGetDocumentByHash([]byte{}, int64(0), "...")
if err != nil {
    // handle error
}
// result is *tg.Document