get_file_hashes()

async Client.get_file_hashes()

Get SHA256 hashes for verifying downloaded files.

Usable by Users Bots
Parameters:
  • location (InputFileLocation) – File location.

  • offset (int, optional) – Offset from which to get file hashes. Defaults to 0.

Returns:

List of FileHash – List of file hashes.

Example

hashes = await app.get_file_hashes(location)