1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-04 11:07:51 +01:00
MadelineProto/old_docs/API_docs_v18/constructors/config.md
Daniil Gentili 9d77dc0919 AMP fixes
2017-08-20 09:05:56 +00:00

1.1 KiB

title description
config config attributes, type and example

Constructor: config

Back to constructors index

Attributes:

Name Type Required
date int Yes
test_mode Bool Yes
this_dc int Yes
dc_options Array of DcOption Yes
chat_size_max int Yes
broadcast_size_max int Yes

Type: Config

Example:

$config = ['_' => 'config', 'date' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], 'chat_size_max' => int, 'broadcast_size_max' => int];

PWRTelegram json-encoded version:

{"_": "config", "date": int, "test_mode": Bool, "this_dc": int, "dc_options": [DcOption], "chat_size_max": int, "broadcast_size_max": int}

Or, if you're into Lua:

config={_='config', date=int, test_mode=Bool, this_dc=int, dc_options={DcOption}, chat_size_max=int, broadcast_size_max=int}