Layer 220
UploadFileCdnRedirect
The file must be downloaded from a CDN DC.
constructor
upload.fileCdnRedirect#f18cda44 dc_id:int file_token:bytes encryption_key:bytes encryption_iv:bytes file_hashes:Vector<FileHash> = upload.File;
Parameters
| Name | Type | Description |
|---|---|---|
| DcId | int | CDN DC ID |
| FileToken | bytes | File token (see CDN files ) |
| EncryptionKey | bytes | Encryption key (see CDN files ) |
| EncryptionIv | bytes | Encryption IV (see CDN files ) |
| FileHashes | Vector<FileHash> | File hashes (see CDN files ) |
Returns
upload.FileGogram Example
// Creating UploadFileCdnRedirect constructor obj := &tg.UploadFileCdnRedirect{ DcId: 0, FileToken: []byte{}, EncryptionKey: []byte{}, EncryptionIv: []byte{}, FileHashes: []tg.FileHash{&tg.FileHash{}}, }