Link Search Menu Expand Document

Constructor: upload.fileCdnRedirect

Back to constructors index

The file must be downloaded from a CDN DC.

Attributes:

NameTypeRequiredDescription
dc_idintYesCDN DC ID
file_tokenstringYes
encryption_keystringYes
encryption_ivstringYes
file_hashesArray of FileHashYesFile hashes (see CDN files)

Type: upload.File

Example:

$upload_fileCdnRedirect = ['_' => 'upload.fileCdnRedirect', 'dc_id' => int, 'file_token' => 'string', 'encryption_key' => 'string', 'encryption_iv' => 'string', 'file_hashes' => [FileHash, FileHash]];