MadelineProtoDocs/old_docs/API_docs_v81/constructors/config.md
Sean 4baac3178e Add Syntax Highlight for Markdown
Add PHP, Lua language tag to Code area
2018-10-18 00:30:20 +08:00

5.9 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
phonecalls_enabled Bool Optional
default_p2p_contacts Bool Optional
preload_featured_stickers Bool Optional
ignore_phone_entities Bool Optional
revoke_pm_inbox Bool Optional
blocked_mode Bool Optional
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
megagroup_size_max int Yes
forwarded_count_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
push_chat_period_ms int Yes
push_chat_limit int Yes
saved_gifs_limit int Yes
edit_time_limit int Yes
revoke_time_limit int Yes
revoke_pm_time_limit int Yes
rating_e_decay int Yes
stickers_recent_limit int Yes
stickers_faved_limit int Yes
channels_read_media_period int Yes
tmp_sessions int Optional
pinned_dialogs_count_max int Yes
call_receive_timeout_ms int Yes
call_ring_timeout_ms int Yes
call_connect_timeout_ms int Yes
call_packet_timeout_ms int Yes
me_url_prefix string Yes
autoupdate_url_prefix string Optional
suggested_lang_code string Optional
lang_pack_version int Optional

Type: Config

Example:

$config = ['_' => 'config', 'phonecalls_enabled' => Bool, 'default_p2p_contacts' => Bool, 'preload_featured_stickers' => Bool, 'ignore_phone_entities' => Bool, 'revoke_pm_inbox' => Bool, 'blocked_mode' => Bool, 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption, DcOption], 'chat_size_max' => int, 'megagroup_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, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'revoke_time_limit' => int, 'revoke_pm_time_limit' => int, 'rating_e_decay' => int, 'stickers_recent_limit' => int, 'stickers_faved_limit' => int, 'channels_read_media_period' => int, 'tmp_sessions' => int, 'pinned_dialogs_count_max' => int, 'call_receive_timeout_ms' => int, 'call_ring_timeout_ms' => int, 'call_connect_timeout_ms' => int, 'call_packet_timeout_ms' => int, 'me_url_prefix' => 'string', 'autoupdate_url_prefix' => 'string', 'suggested_lang_code' => 'string', 'lang_pack_version' => int];

PWRTelegram json-encoded version:

{"_": "config", "phonecalls_enabled": Bool, "default_p2p_contacts": Bool, "preload_featured_stickers": Bool, "ignore_phone_entities": Bool, "revoke_pm_inbox": Bool, "blocked_mode": Bool, "date": int, "expires": int, "test_mode": Bool, "this_dc": int, "dc_options": [DcOption], "chat_size_max": int, "megagroup_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, "push_chat_period_ms": int, "push_chat_limit": int, "saved_gifs_limit": int, "edit_time_limit": int, "revoke_time_limit": int, "revoke_pm_time_limit": int, "rating_e_decay": int, "stickers_recent_limit": int, "stickers_faved_limit": int, "channels_read_media_period": int, "tmp_sessions": int, "pinned_dialogs_count_max": int, "call_receive_timeout_ms": int, "call_ring_timeout_ms": int, "call_connect_timeout_ms": int, "call_packet_timeout_ms": int, "me_url_prefix": "string", "autoupdate_url_prefix": "string", "suggested_lang_code": "string", "lang_pack_version": int}

Or, if you're into Lua:

config={_='config', phonecalls_enabled=Bool, default_p2p_contacts=Bool, preload_featured_stickers=Bool, ignore_phone_entities=Bool, revoke_pm_inbox=Bool, blocked_mode=Bool, date=int, expires=int, test_mode=Bool, this_dc=int, dc_options={DcOption}, chat_size_max=int, megagroup_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, push_chat_period_ms=int, push_chat_limit=int, saved_gifs_limit=int, edit_time_limit=int, revoke_time_limit=int, revoke_pm_time_limit=int, rating_e_decay=int, stickers_recent_limit=int, stickers_faved_limit=int, channels_read_media_period=int, tmp_sessions=int, pinned_dialogs_count_max=int, call_receive_timeout_ms=int, call_ring_timeout_ms=int, call_connect_timeout_ms=int, call_packet_timeout_ms=int, me_url_prefix='string', autoupdate_url_prefix='string', suggested_lang_code='string', lang_pack_version=int}