View Source ExTDLib.Method.SetTdlibParameters (ExTDLib v0.0.4)

Sets the parameters for TDLib initialization. Works only when the current authorization state is authorizationStateWaitTdlibParameters. Returns object_ptr<Ok>.

NameTypeDescription
use_test_dcboolPass true to use Telegram test environment instead of the production environment.
database_directorystringThe path to the directory for the persistent database; if empty, the current working directory will be used.
files_directorystringThe path to the directory for storing files; if empty, database_directory will be used.
database_encryption_keybytesEncryption key for the database. If the encryption key is invalid, then an error with code 401 will be returned.
use_file_databaseboolPass true to keep information about downloaded and uploaded files between application restarts.
use_chat_info_databaseboolPass true to keep cache of users, basic groups, supergroups, channels and secret chats between restarts. Implies use_file_database.
use_message_databaseboolPass true to keep cache of chats and messages between restarts. Implies use_chat_info_database.
use_secret_chatsboolPass true to enable support for secret chats.
api_idnumberApplication identifier for Telegram API access, which can be obtained at https://my.telegram.org.
api_hashstringApplication identifier hash for Telegram API access, which can be obtained at https://my.telegram.org.
system_language_codestringIETF language tag of the user's operating system language; must be non-empty.
device_modelstringModel of the device the application is being run on; must be non-empty.
system_versionstringVersion of the operating system the application is being run on. If empty, the version is automatically detected by TDLib.
application_versionstringApplication version; must be non-empty.
enable_storage_optimizerboolPass true to automatically delete old files in background.
ignore_file_namesboolPass true to ignore original file names for downloaded files. Otherwise, downloaded files are saved under names as close as possible to the original name.

More details on telegram's documentation.