mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 09:38:28 +01:00
940 B
940 B
title | description | nav_exclude | image |
---|---|---|---|
fileHash | SHA256 Hash of an uploaded file, to be checked for validity after download | true | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: fileHash
SHA256 Hash of an uploaded file, to be checked for validity after download
Attributes:
Name | Type | Required | Description |
---|---|---|---|
offset | long | 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' => long, 'limit' => int, 'hash' => 'bytes'];