MadelineProtoDocs/old_docs/API_docs_v43/constructors/cdnPublicKey.md
2020-09-12 12:47:38 +02:00

909 B

title description image
cdnPublicKey Public key to use **only** during handshakes to [CDN](https://core.telegram.org/cdn) DCs. https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: cdnPublicKey

Back to constructors index

Public key to use only during handshakes to CDN DCs.

Attributes:

Name Type Required Description
dc_id int Yes CDN DC ID
public_key string Yes RSA public key

Type: CdnPublicKey

Example:

$cdnPublicKey = ['_' => 'cdnPublicKey', 'dc_id' => int, 'public_key' => 'string'];

Or, if you're into Lua:

cdnPublicKey={_='cdnPublicKey', dc_id=int, public_key='string'}