FileHash#

class pyrogram.raw.types.FileHash#

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

Constructor of FileHash.

Details:
  • Layer: 158

  • ID: F39B035C

Parameters:
  • offset (int 64-bit) – Offset from where to start computing SHA-256 hash.

  • limit (int 32-bit) – Length.

  • hash (bytes) – SHA-256 Hash of file chunk, to be checked for validity after download.

Functions:

This object can be returned by 3 functions.

upload.ReuploadCdnFile

Request a reupload of a certain file to a CDN DC.

upload.GetCdnFileHashes

Get SHA256 hashes for verifying downloaded CDN files.

upload.GetFileHashes

Get SHA256 hashes for verifying downloaded files.