mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-04 11:27:52 +01:00
2.8 KiB
2.8 KiB
title | description |
---|---|
config | config attributes, type and example |
Constructor: config
Attributes:
Name | Type | Required |
---|---|---|
phonecalls_enabled | Bool | Optional |
date | int | Required |
expires | int | Required |
test_mode | Bool | Required |
this_dc | int | Required |
dc_options | Array of DcOption | Required |
chat_size_max | int | Required |
megagroup_size_max | int | Required |
forwarded_count_max | int | Required |
online_update_period_ms | int | Required |
offline_blur_timeout_ms | int | Required |
offline_idle_timeout_ms | int | Required |
online_cloud_timeout_ms | int | Required |
notify_cloud_delay_ms | int | Required |
notify_default_delay_ms | int | Required |
chat_big_size | int | Required |
push_chat_period_ms | int | Required |
push_chat_limit | int | Required |
saved_gifs_limit | int | Required |
edit_time_limit | int | Required |
rating_e_decay | int | Required |
stickers_recent_limit | int | Required |
tmp_sessions | int | Optional |
pinned_dialogs_count_max | int | Required |
call_receive_timeout_ms | int | Required |
call_ring_timeout_ms | int | Required |
call_connect_timeout_ms | int | Required |
call_packet_timeout_ms | int | Required |
disabled_features | Array of DisabledFeature | Required |
Type: Config
Example:
$config = ['_' => 'config', 'phonecalls_enabled' => true, 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [Vector t], '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, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'rating_e_decay' => int, 'stickers_recent_limit' => 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, 'disabled_features' => [Vector t], ];