MadelineProtoDocs/old_docs/API_docs_v27/constructors/config.md

2.4 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_size_max int Yes Chat size max
broadcast_size_max int Yes Broadcast size max
forwarded_count_max int Yes Forwarded count max
online_update_period_ms int Yes Online update period ms
offline_blur_timeout_ms int Yes Offline blur timeout ms
offline_idle_timeout_ms int Yes Offline IDle timeout ms
online_cloud_timeout_ms int Yes Online cloud timeout ms
notify_cloud_delay_ms int Yes Notify cloud delay ms
notify_default_delay_ms int Yes Notify default delay ms
chat_big_size int Yes Chat big size
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_size_max' => int, 'broadcast_size_max' => int, 'forwarded_count_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]];

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, forwarded_count_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}}