mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-15 07:36:55 +01:00
1.2 KiB
1.2 KiB
title | description |
---|---|
config | config attributes, type and example |
Constructor: config
Attributes:
Name | Type | Required |
---|---|---|
date | int | Yes |
expires | int | Yes |
test_mode | Bool | Yes |
this_dc | int | Yes |
dc_options | Array of DcOption | Yes |
chat_big_size | int | Yes |
chat_size_max | int | Yes |
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], '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}, }