FileHash

class pyrogram.raw.types.FileHash

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

Constructor type of FileHash.

Details
  • Layer: 126

  • ID: 0x6242c773

Parameters
  • offset (int 32-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.

Methods

This object can be returned by 3 methods:

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.