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

35 lines
1.0 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) | Required|
|expires|[int](../types/int.md) | Required|
|test\_mode|[Bool](../types/Bool.md) | Required|
|this\_dc|[int](../types/int.md) | Required|
|dc\_options|Array of [DcOption](../types/DcOption.md) | Required|
|chat\_big\_size|[int](../types/int.md) | Required|
|chat\_size\_max|[int](../types/int.md) | Required|
|broadcast\_size\_max|[int](../types/int.md) | Required|
|disabled\_features|Array of [DisabledFeature](../types/DisabledFeature.md) | Required|
### Type: [Config](../types/Config.md)
### Example:
```
$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [Vector t], 'chat_big_size' => int, 'chat_size_max' => int, 'broadcast_size_max' => int, 'disabled_features' => [Vector t], ];
```