MadelineProtoDocs/old_docs/API_docs_v25/constructors/cdnPublicKey.md
2020-06-16 17:50:25 +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'}