MadelineProtoDocs/old_docs/API_docs_v82/constructors/cdnPublicKey.md
2019-12-27 17:48:04 +01: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'}