mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-15 09:56:54 +01:00
38 lines
649 B
Markdown
38 lines
649 B
Markdown
|
---
|
||
|
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:
|
||
|
|
||
|
```
|
||
|
$deviceTokenSet = ['_' => 'deviceTokenSet', 'tokens' => [DeviceToken], ];
|
||
|
```
|
||
|
|
||
|
Or, if you're into Lua:
|
||
|
|
||
|
|
||
|
```
|
||
|
deviceTokenSet={_='deviceTokenSet', tokens={DeviceToken}, }
|
||
|
|
||
|
```
|
||
|
|
||
|
|