MadelineProtoDocs/old_docs/API_docs_v20/constructors/cdnConfig.md
2020-06-16 17:50:25 +02:00

875 B

title description image
cdnConfig Configuration for [CDN](https://core.telegram.org/cdn) file downloads. https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: cdnConfig

Back to constructors index

Configuration for CDN file downloads.

Attributes:

Name Type Required Description
public_keys Array of CdnPublicKey Yes Vector of public keys to use only during handshakes to CDN DCs.

Type: CdnConfig

Example:

$cdnConfig = ['_' => 'cdnConfig', 'public_keys' => [CdnPublicKey, CdnPublicKey]];

Or, if you're into Lua:

cdnConfig={_='cdnConfig', public_keys={CdnPublicKey}}