1.5 KiB
1.5 KiB
title | description | image | redirect_from |
---|---|---|---|
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 | /API_docs/constructors/upload_fileCdnRedirect.html |
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) |
file_hashes | Array of FileHash | Yes | File hashes (see CDN files) |
Type: upload.File
Example:
$upload.fileCdnRedirect = ['_' => 'upload.fileCdnRedirect', 'dc_id' => int, 'file_token' => 'bytes', 'encryption_key' => 'bytes', 'encryption_iv' => 'bytes', 'file_hashes' => [FileHash, FileHash]];
Or, if you're into Lua:
upload.fileCdnRedirect={_='upload.fileCdnRedirect', dc_id=int, file_token='bytes', encryption_key='bytes', encryption_iv='bytes', file_hashes={FileHash}}