mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-12 01:39:37 +01:00
44 lines
739 B
Markdown
44 lines
739 B
Markdown
---
|
|
title: cdnPublicKey
|
|
description: cdnPublicKey attributes, type and example
|
|
---
|
|
## 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:
|
|
|
|
```
|
|
$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:
|
|
|
|
|
|
```
|
|
cdnPublicKey={_='cdnPublicKey', dc_id=int, public_key='string'}
|
|
|
|
```
|
|
|
|
|