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)
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}}

This site uses cookies, as described in the cookie policy. By clicking on "Accept" you consent to the use of cookies.