set_tdlib_parameters


Description:

public async Ok set_tdlib_parameters (bool use_test_dc, string database_directory, string files_directory, Bytes database_encryption_key, bool use_file_database, bool use_chat_info_database, bool use_message_database, bool use_secret_chats, int32 api_id, string api_hash, string system_language_code, string device_model, string system_version, string application_version) throws TDLibError

Sets the parameters for TDLib initialization. Works only when the current authorization state is authorizationStateWaitTdlibParameters

Parameters:

use_test_dc

Pass true to use Telegram test environment instead of the production environment

database_directory

The path to the directory for the persistent database; if empty, the current working directory will be used

files_directory

The path to the directory for storing files; if empty, database_directory will be used

database_encryption_key

Encryption key for the database. If the encryption key is invalid, then an error with code 401 will be returned

use_file_database

Pass true to keep information about downloaded and uploaded files between application restarts

use_chat_info_database

Pass true to keep cache of users, basic groups, supergroups, channels and secret chats between restarts. Implies use_file_database

use_message_database

Pass true to keep cache of chats and messages between restarts. Implies use_chat_info_database

use_secret_chats

Pass true to enable support for secret chats

api_id

Application identifier for Telegram API access, which can be obtained at https://my.telegram.org

api_hash

Application identifier hash for Telegram API access, which can be obtained at https://my.telegram.org

system_language_code

IETF language tag of the user's operating system language; must be non-empty

device_model

Model of the device the application is being run on; must be non-empty

system_version

Version of the operating system the application is being run on. If empty, the version is automatically detected by TDLib

application_version

Application version; must be non-empty