MadelineProtoDocs/old_docs/API_docs_v25/constructors/config.md
Daniil Gentili e5a1324684 docufix
2018-04-04 23:19:57 +00:00

2.5 KiB

title description image
config config attributes, type and example https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: config

Back to constructors index

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_size_max int Yes
broadcast_size_max int Yes
online_update_period_ms int Yes
offline_blur_timeout_ms int Yes
offline_idle_timeout_ms int Yes
online_cloud_timeout_ms int Yes
notify_cloud_delay_ms int Yes
notify_default_delay_ms int Yes
chat_big_size 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_size_max' => int, 'broadcast_size_max' => int, 'online_update_period_ms' => int, 'offline_blur_timeout_ms' => int, 'offline_idle_timeout_ms' => int, 'online_cloud_timeout_ms' => int, 'notify_cloud_delay_ms' => int, 'notify_default_delay_ms' => int, 'chat_big_size' => int, 'disabled_features' => [DisabledFeature, DisabledFeature]];

PWRTelegram json-encoded version:

{"_": "config", "date": int, "expires": int, "test_mode": Bool, "this_dc": int, "dc_options": [DcOption], "chat_size_max": int, "broadcast_size_max": int, "online_update_period_ms": int, "offline_blur_timeout_ms": int, "offline_idle_timeout_ms": int, "online_cloud_timeout_ms": int, "notify_cloud_delay_ms": int, "notify_default_delay_ms": int, "chat_big_size": 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_size_max=int, broadcast_size_max=int, online_update_period_ms=int, offline_blur_timeout_ms=int, offline_idle_timeout_ms=int, online_cloud_timeout_ms=int, notify_cloud_delay_ms=int, notify_default_delay_ms=int, chat_big_size=int, disabled_features={DisabledFeature}}