Layer 224
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

Gogram Example

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

Possible Errors

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