2019-03-08 13:49:23 +01:00
|
|
|
---
|
|
|
|
title: cdnConfig
|
2019-12-27 17:48:04 +01:00
|
|
|
description: Configuration for [CDN](https://core.telegram.org/cdn) file downloads.
|
2019-03-08 13:49:23 +01:00
|
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
|
|
---
|
|
|
|
# Constructor: cdnConfig
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-12-27 17:48:04 +01:00
|
|
|
Configuration for [CDN](https://core.telegram.org/cdn) file downloads.
|
2019-03-08 13:49:23 +01:00
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|---------------|----------|-------------|
|
|
|
|
|public\_keys|Array of [CdnPublicKey](../types/CdnPublicKey.md) | Yes|Public keys|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [CdnConfig](../types/CdnConfig.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```php
|
|
|
|
$cdnConfig = ['_' => 'cdnConfig', 'public_keys' => [CdnPublicKey, CdnPublicKey]];
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
```lua
|
|
|
|
cdnConfig={_='cdnConfig', public_keys={CdnPublicKey}}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|