Added docs for layer 18, 23, 25, 27, 33, 38, 40, 41, 42, 44, 45, 46, 51, 53, 55
2017-01-02 21:04:36 +01:00
|
|
|
---
|
|
|
|
title: config
|
|
|
|
description: config attributes, type and example
|
|
|
|
---
|
|
|
|
## Constructor: config
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required |
|
|
|
|
|----------|:-------------:|---------:|
|
2017-03-11 19:54:51 +01:00
|
|
|
|date|[int](../types/int.md) | Yes|
|
|
|
|
|test\_mode|[Bool](../types/Bool.md) | Yes|
|
|
|
|
|this\_dc|[int](../types/int.md) | Yes|
|
|
|
|
|dc\_options|Array of [DcOption](../types/DcOption.md) | Yes|
|
|
|
|
|chat\_size\_max|[int](../types/int.md) | Yes|
|
|
|
|
|broadcast\_size\_max|[int](../types/int.md) | Yes|
|
Added docs for layer 18, 23, 25, 27, 33, 38, 40, 41, 42, 44, 45, 46, 51, 53, 55
2017-01-02 21:04:36 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [Config](../types/Config.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```
|
2017-03-11 19:54:51 +01:00
|
|
|
$config = ['_' => 'config', 'date' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], 'chat_size_max' => int, 'broadcast_size_max' => int, ];
|
Added docs for layer 18, 23, 25, 27, 33, 38, 40, 41, 42, 44, 45, 46, 51, 53, 55
2017-01-02 21:04:36 +01:00
|
|
|
```
|
|
|
|
|
2017-03-11 19:54:51 +01:00
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
config={_='config', date=int, test_mode=Bool, this_dc=int, dc_options={DcOption}, chat_size_max=int, broadcast_size_max=int, }
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|