FileHash
- class pyrogram.raw.types.FileHash
SHA256 Hash of an uploaded file, to be checked for validity after download
Constructor of
FileHash.- Details:
Layer:
223ID:
F39B035C
- Parameters:
offset (
int64-bit) – Offset from where to start computing SHA-256 hashlimit (
int32-bit) – Lengthhash (
bytes) – SHA-256 Hash of file chunk, to be checked for validity after download
- Functions:
This object can be returned by 3 functions.
Request a reupload of a certain file to a CDN DC.
Get SHA256 hashes for verifying downloaded CDN files
Get SHA256 hashes for verifying downloaded files
TL Schema
fileHash#f39b035c
offset:long
limit:int
hash:bytes
= FileHash
Parameter Tree
FileHash
├── offset →
long├── limit →
int└── hash →
bytesExample
FileHash(
offset=0,
limit=0,
hash=b"data",
)