1.7 KiB
1.7 KiB
title | description | image |
---|---|---|
config | Current configuration | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: config
Current configuration
Attributes:
Name | Type | Required | Description |
---|---|---|---|
date | int | Yes | Current date at the server |
expires | int | Yes | Expiration date of this config: when it expires it'll have to be refetched using help.getConfig |
test_mode | Bool | Yes | Whether we're connected to the test DCs |
this_dc | int | Yes | ID of the DC that returned the reply |
dc_options | Array of DcOption | Yes | DC IP list |
chat_big_size | int | Yes | |
chat_size_max | int | Yes | Maximum member count for normal groups |
broadcast_size_max | int | Yes | |
disabled_features | Array of DisabledFeature | Yes |
Type: Config
Example:
$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption, DcOption], 'chat_big_size' => int, 'chat_size_max' => int, 'broadcast_size_max' => int, 'disabled_features' => [DisabledFeature, 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}}