MadelineProtoDocs/old_docs/API_docs_v66/constructors/upload.fileCdnRedirect.md

1.3 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

Back to constructors index

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

Type: upload.File

Example:

$upload.fileCdnRedirect = ['_' => 'upload.fileCdnRedirect', 'dc_id' => int, 'file_token' => 'bytes', 'encryption_key' => 'bytes', 'encryption_iv' => 'bytes'];

Or, if you're into Lua:

upload.fileCdnRedirect={_='upload.fileCdnRedirect', dc_id=int, file_token='bytes', encryption_key='bytes', encryption_iv='bytes'}