MadelineProtoDocs/old_docs/API_docs_v39/constructors/cdnConfig.md

39 lines
875 B
Markdown
Raw Normal View History

2020-06-16 17:50:25 +02:00
---
title: cdnConfig
description: Configuration for [CDN](https://core.telegram.org/cdn) file downloads.
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: cdnConfig
[Back to constructors index](index.md)
Configuration for [CDN](https://core.telegram.org/cdn) file downloads.
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|public\_keys|Array of [CdnPublicKey](../types/CdnPublicKey.md) | Yes|Vector of public keys to use **only** during handshakes to [CDN](https://core.telegram.org/cdn) DCs.|
### 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}}
```