Содержание

Параметры

TdLib has many options which impose limitations on implementation, gives useful information or can alter TdLib behaviour. Each option has name and value. Value may be of one of the following types:

Type of value Default value Value range
Integer 0 32-bit integer
Boolean false True or false
String Any Unicode string

List of options supported by TdLib

Options not listed in this list may be safely ignored.

Name Type Writable Description
authorization_date Integer No Unix time when last authorization was received
broadcast_size_max Integer No Maximum number of broadcast recipients
chat_big_size Integer No Chat must be considered Big in disabled_* options if it has at least specified number of participants
connection_state String No Current connection state to the server. One of “Waiting for network”, “Connecting”, “Updating” or “Ready”
disabled_bigchat_create String No If not empty, creation of new Big group chats is temporarily disabled
disabled_bigchat_message String No If not empty, sending messages is temporarily disabled in Big group chats
disabled_bigchat_upload_audio String No If not empty, audio upload is temporarily disabled in Big group chats
disabled_bigchat_upload_document String No If not empty, documents upload is temporarily disabled in Big group chats
disabled_bigchat_upload_photo String No If not empty, photo upload is temporarily disabled in Big group chats
disabled_broadcast_create String No If not empty, creation of new broadcasts is temporarily disabled
disabled_chat_create String No If not empty, creation of new group chats is temporarily disabled
disabled_chat_message String No If not empty, sending messages is temporarily disabled in group chats
disabled_chat_upload_audio String No If not empty, audio upload is temporarily disabled in group chats
disabled_chat_upload_document String No If not empty, documents upload is temporarily disabled in group chats
disabled_chat_upload_photo String No If not empty, photo upload is temporarily disabled in group chats
disabled_bigfile_download String No If not empty, download of big media files is temporarily disabled
disabled_file_download String No If not empty, media download is temporarily disabled
disabled_photo_download String No If not empty, photos download is temporarily disabled
disabled_pm_message String No If not empty, sending messages is temporarily disabled in private and secret chats
disabled_pm_upload_audio String No If not empty, audio upload is temporarily disabled in private and secret chats
disabled_pm_upload_document String No If not empty, documents upload is temporarily disabled in private and secret chats
disabled_pm_upload_photo String No If not empty, photo upload is temporarily disabled in private and secret chats
group_size_max Integer No Maximum number of participants in a group
forwarded_messages_count_max Integer No Maximum number of forwarded messages in one request
my_id Integer No Identifier of currently logged in user
network_unreachable Boolean Yes If true, TdLib will not try to establish new network connections, connection state will change to WaitingForNetwork
supergroup_size_max Integer No Maximum number of participants in a supergroup
test_mode Boolean No If true, use test environment instead of production. Can be set only before authorization begins

Комментарии