help.getConfig

Returns current configuration, including data center configuration.

config#330b4067 flags:# phonecalls_enabled:flags.1?true default_p2p_contacts:flags.3?true preload_featured_stickers:flags.4?true ignore_phone_entities:flags.5?true revoke_pm_inbox:flags.6?true blocked_mode:flags.8?true pfs_enabled:flags.13?true date:int expires:int test_mode:Bool this_dc:int dc_options:Vector<DcOption> dc_txt_domain_name:string 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:flags.0?int pinned_dialogs_count_max:int pinned_infolder_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:flags.7?string gif_search_username:flags.9?string venue_search_username:flags.10?string img_search_username:flags.11?string static_maps_provider:flags.12?string caption_length_max:int message_length_max:int webfile_dc_id:int suggested_lang_code:flags.2?string lang_pack_version:flags.2?int base_lang_pack_version:flags.2?int = Config;
---functions---
help.getConfig#c4f9186b = Config;

Parameters

This constructor does not require any parameters.

Result

Config

Possible errors

Code Type Description
400 CONNECTION_API_ID_INVALID The provided API id is invalid.
400 CONNECTION_APP_VERSION_EMPTY App version is empty.
400 CONNECTION_LAYER_INVALID Layer invalid.
400 CONNECTION_NOT_INITED Connection not initialized.
400 DATA_INVALID Encrypted data invalid.
400 INPUT_LAYER_INVALID The provided layer is invalid.
400 MSG_ID_INVALID Invalid message ID provided.
400 USERNAME_INVALID The provided username is not valid.
403 USER_PRIVACY_RESTRICTED The user's privacy settings do not allow you to do this.

Bots can use this method