48 lines
1.3 KiB
Markdown
48 lines
1.3 KiB
Markdown
---
|
|
title: upload.fileCdnRedirect
|
|
description: upload_fileCdnRedirect attributes, type and example
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
---
|
|
# Constructor: upload.fileCdnRedirect
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
| Name | Type | Required |
|
|
|----------|---------------|----------|
|
|
|dc\_id|[int](../types/int.md) | Yes|
|
|
|file\_token|[bytes](../types/bytes.md) | Yes|
|
|
|encryption\_key|[bytes](../types/bytes.md) | Yes|
|
|
|encryption\_iv|[bytes](../types/bytes.md) | Yes|
|
|
|cdn\_file\_hashes|Array of [CdnFileHash](../types/CdnFileHash.md) | Yes|
|
|
|
|
|
|
|
|
### Type: [upload\_File](../types/upload_File.md)
|
|
|
|
|
|
### Example:
|
|
|
|
```
|
|
$upload_fileCdnRedirect = ['_' => 'upload.fileCdnRedirect', 'dc_id' => int, 'file_token' => 'bytes', 'encryption_key' => 'bytes', 'encryption_iv' => 'bytes', 'cdn_file_hashes' => [CdnFileHash, CdnFileHash]];
|
|
```
|
|
|
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
|
|
|
```
|
|
{"_": "upload.fileCdnRedirect", "dc_id": int, "file_token": "bytes", "encryption_key": "bytes", "encryption_iv": "bytes", "cdn_file_hashes": [CdnFileHash]}
|
|
```
|
|
|
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
```
|
|
upload_fileCdnRedirect={_='upload.fileCdnRedirect', dc_id=int, file_token='bytes', encryption_key='bytes', encryption_iv='bytes', cdn_file_hashes={CdnFileHash}}
|
|
|
|
```
|
|
|
|
|