MadelineProtoDocs/old_docs/API_docs_v97/constructors/cdnConfig.md

39 lines
786 B
Markdown
Raw Normal View History

2019-05-03 21:10:09 +02:00
---
title: cdnConfig
2019-12-27 17:48:04 +01:00
description: Configuration for [CDN](https://core.telegram.org/cdn) file downloads.
2019-05-03 21:10:09 +02: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-05-03 21:10:09 +02: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}}
```