MadelineProtoDocs/old_docs/API_docs_v81/constructors/cdnPublicKey.md

44 lines
815 B
Markdown
Raw Normal View History

2018-07-12 20:24:55 +02:00
---
title: cdnPublicKey
description: cdnPublicKey attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: cdnPublicKey
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|dc\_id|[int](../types/int.md) | Yes|
|public\_key|[string](../types/string.md) | Yes|
### Type: [CdnPublicKey](../types/CdnPublicKey.md)
### Example:
```php
2018-07-12 20:24:55 +02:00
$cdnPublicKey = ['_' => 'cdnPublicKey', 'dc_id' => int, 'public_key' => 'string'];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "cdnPublicKey", "dc_id": int, "public_key": "string"}
```
Or, if you're into Lua:
2018-07-12 20:24:55 +02:00
```lua
2018-07-12 20:24:55 +02:00
cdnPublicKey={_='cdnPublicKey', dc_id=int, public_key='string'}
```