1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 01:46:55 +01:00
MadelineProto/old_docs/API_docs_v23/constructors/config.md

44 lines
1.2 KiB
Markdown
Raw Normal View History

---
title: config
description: config attributes, type and example
---
## Constructor: config
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
|date|[int](../types/int.md) | Yes|
|expires|[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\_big\_size|[int](../types/int.md) | Yes|
|chat\_size\_max|[int](../types/int.md) | Yes|
|broadcast\_size\_max|[int](../types/int.md) | Yes|
|disabled\_features|Array of [DisabledFeature](../types/DisabledFeature.md) | Yes|
### Type: [Config](../types/Config.md)
### Example:
```
$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], 'chat_big_size' => int, 'chat_size_max' => int, 'broadcast_size_max' => int, 'disabled_features' => [DisabledFeature], ];
```
Or, if you're into Lua:
```
config={_='config', date=int, expires=int, test_mode=Bool, this_dc=int, dc_options={DcOption}, chat_big_size=int, chat_size_max=int, broadcast_size_max=int, disabled_features={DisabledFeature}, }
```