2016-12-20 13:15:22 +01:00
|
|
|
---
|
|
|
|
title: config
|
2016-12-20 13:32:11 +01:00
|
|
|
description: config attributes, type and example
|
2016-12-20 13:15:22 +01:00
|
|
|
---
|
2016-12-19 16:56:52 +01:00
|
|
|
## Constructor: config
|
2016-12-20 13:15:22 +01:00
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
2016-12-19 16:56:52 +01:00
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required |
|
|
|
|
|----------|:-------------:|---------:|
|
2017-01-25 23:16:22 +01:00
|
|
|
|phonecalls\_enabled|[Bool](../types/Bool.md) | Optional|
|
2016-12-19 16:56:52 +01:00
|
|
|
|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\_size\_max|[int](../types/int.md) | Required|
|
|
|
|
|megagroup\_size\_max|[int](../types/int.md) | Required|
|
|
|
|
|forwarded\_count\_max|[int](../types/int.md) | Required|
|
|
|
|
|online\_update\_period\_ms|[int](../types/int.md) | Required|
|
|
|
|
|offline\_blur\_timeout\_ms|[int](../types/int.md) | Required|
|
|
|
|
|offline\_idle\_timeout\_ms|[int](../types/int.md) | Required|
|
|
|
|
|online\_cloud\_timeout\_ms|[int](../types/int.md) | Required|
|
|
|
|
|notify\_cloud\_delay\_ms|[int](../types/int.md) | Required|
|
|
|
|
|notify\_default\_delay\_ms|[int](../types/int.md) | Required|
|
|
|
|
|chat\_big\_size|[int](../types/int.md) | Required|
|
|
|
|
|push\_chat\_period\_ms|[int](../types/int.md) | Required|
|
|
|
|
|push\_chat\_limit|[int](../types/int.md) | Required|
|
|
|
|
|saved\_gifs\_limit|[int](../types/int.md) | Required|
|
|
|
|
|edit\_time\_limit|[int](../types/int.md) | Required|
|
|
|
|
|rating\_e\_decay|[int](../types/int.md) | Required|
|
|
|
|
|stickers\_recent\_limit|[int](../types/int.md) | Required|
|
|
|
|
|tmp\_sessions|[int](../types/int.md) | Optional|
|
2017-01-25 23:16:22 +01:00
|
|
|
|pinned\_dialogs\_count\_max|[int](../types/int.md) | Required|
|
|
|
|
|call\_receive\_timeout\_ms|[int](../types/int.md) | Required|
|
|
|
|
|call\_ring\_timeout\_ms|[int](../types/int.md) | Required|
|
|
|
|
|call\_connect\_timeout\_ms|[int](../types/int.md) | Required|
|
|
|
|
|call\_packet\_timeout\_ms|[int](../types/int.md) | Required|
|
2016-12-19 16:56:52 +01:00
|
|
|
|disabled\_features|Array of [DisabledFeature](../types/DisabledFeature.md) | Required|
|
|
|
|
|
2016-12-19 18:56:05 +01:00
|
|
|
|
|
|
|
|
|
|
|
### Type: [Config](../types/Config.md)
|
|
|
|
|
|
|
|
|
2016-12-19 16:56:52 +01:00
|
|
|
### Example:
|
|
|
|
|
|
|
|
```
|
2017-01-25 23:16:22 +01:00
|
|
|
$config = ['_' => 'config', 'phonecalls_enabled' => true, 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [Vector t], 'chat_size_max' => int, 'megagroup_size_max' => int, 'forwarded_count_max' => int, 'online_update_period_ms' => int, 'offline_blur_timeout_ms' => int, 'offline_idle_timeout_ms' => int, 'online_cloud_timeout_ms' => int, 'notify_cloud_delay_ms' => int, 'notify_default_delay_ms' => int, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'rating_e_decay' => int, 'stickers_recent_limit' => int, 'tmp_sessions' => int, 'pinned_dialogs_count_max' => int, 'call_receive_timeout_ms' => int, 'call_ring_timeout_ms' => int, 'call_connect_timeout_ms' => int, 'call_packet_timeout_ms' => int, 'disabled_features' => [Vector t], ];
|
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
|
|
|
```
|
|
|
|
|