1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-16 19:46:58 +01:00
MadelineProto/docs/TD_docs/constructors/deviceTokenSet.md

45 lines
766 B
Markdown
Raw Normal View History

---
title: deviceTokenSet
description: Contains list of device tokens
---
## Constructor: deviceTokenSet
[Back to constructors index](index.md)
Contains list of device tokens
### Attributes:
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
|tokens|Array of [DeviceToken](../constructors/DeviceToken.md) | Yes|List of tokens|
### Type: [DeviceTokenSet](../types/DeviceTokenSet.md)
### Example:
```
2017-07-23 16:33:46 +02:00
$deviceTokenSet = ['_' => 'deviceTokenSet', 'tokens' => [DeviceToken]];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "deviceTokenSet", "tokens": [DeviceToken]}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
deviceTokenSet={_='deviceTokenSet', tokens={DeviceToken}}
```