1.4 KiB
1.4 KiB
title | description | image |
---|---|---|
upload.fileCdnRedirect | The file must be downloaded from a [CDN DC](https://core.telegram.org/cdn). | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: upload.fileCdnRedirect
The file must be downloaded from a CDN DC.
Attributes:
Name | Type | Required | Description |
---|---|---|---|
dc_id | int | Yes | CDN DC ID |
file_token | bytes | Yes | File token (see CDN files |
encryption_key | bytes | Yes | Encryption key (see CDN files |
encryption_iv | bytes | Yes | Encryption IV (see CDN files |
cdn_file_hashes | Array of CdnFileHash | Yes | Cdn file hashes |
Type: upload_File
Example:
$upload_fileCdnRedirect = ['_' => 'upload.fileCdnRedirect', 'dc_id' => int, 'file_token' => 'bytes', 'encryption_key' => 'bytes', 'encryption_iv' => 'bytes', 'cdn_file_hashes' => [CdnFileHash, CdnFileHash]];
Or, if you're into Lua:
upload_fileCdnRedirect={_='upload.fileCdnRedirect', dc_id=int, file_token='bytes', encryption_key='bytes', encryption_iv='bytes', cdn_file_hashes={CdnFileHash}}