MadelineProtoDocs/old_docs/API_docs_v38/constructors/fileHash.md
2020-06-16 17:50:25 +02:00

959 B

title description image
fileHash SHA256 Hash of an uploaded file, to be checked for validity after download https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: fileHash

Back to constructors index

SHA256 Hash of an uploaded file, to be checked for validity after download

Attributes:

Name Type Required Description
offset int Yes Offset from where to start computing SHA-256 hash
limit int Yes Length
hash bytes Yes SHA-256 Hash of file chunk, to be checked for validity after download

Type: FileHash

Example:

$fileHash = ['_' => 'fileHash', 'offset' => int, 'limit' => int, 'hash' => 'bytes'];

Or, if you're into Lua:

fileHash={_='fileHash', offset=int, limit=int, hash='bytes'}