MadelineProtoDocs/old_docs/API_docs_v23/constructors/config.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

1.7 KiB

title description image
config Config https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: config

Back to constructors index

Config

Attributes:

Name Type Required Description
date int Yes Date
expires int Yes Expires
test_mode Bool Yes Test mode?
this_dc int Yes This DC
dc_options Array of DcOption Yes DC options
chat_big_size int Yes Chat big size
chat_size_max int Yes Chat size max
broadcast_size_max int Yes Broadcast size max
disabled_features Array of DisabledFeature Yes Disabled features

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]];

PWRTelegram json-encoded version:

{"_": "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}}