MadelineProtoDocs/old_docs/API_docs_v72/constructors/cdnPublicKey.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

849 B

title description image
cdnPublicKey Cdn public key https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: cdnPublicKey

Back to constructors index

Cdn public key

Attributes:

Name Type Required Description
dc_id int Yes DC ID
public_key string Yes Public key

Type: CdnPublicKey

Example:

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

PWRTelegram json-encoded version:

{"_": "cdnPublicKey", "dc_id": int, "public_key": "string"}

Or, if you're into Lua:

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