GetCdnFileHashesRequest
Both users and bots can use this request. See code examples.
---functions--- upload.getCdnFileHashes#91dc3f31 file_token:bytes offset:long = Vector<FileHash>
Returns
A list of the following type is returned.
FileHash |
This type can only be an instance of:
FileHash |
Parameters
file_token | bytes | |
offset | long |
Known RPC errors
This request can cause 2 known errors:
CdnMethodInvalidError | This method cannot be invoked on a CDN server. Refer to https://core.telegram.org/cdn#schema for available methods. |
RsaDecryptFailedError | Internal RSA decryption failed. |
You can import these from telethon.errors
.
Example
from telethon.sync import TelegramClient from telethon import functions, types with TelegramClient(name, api_id, api_hash) as client: result = client(functions.upload.GetCdnFileHashesRequest( file_token=b'arbitrary\x7f data \xfa here', offset=-12398745604826 )) for x in result: print(x)