4baac3178e
Add PHP, Lua language tag to Code area
1.2 KiB
1.2 KiB
title | description | image |
---|---|---|
config | config attributes, type and example | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: config
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, 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}