TDLib v0.0.2 TDLib.Object.TdlibParameters View Source

Contains parameters for TDLib initialization.

NameTypeDescription
use_test_dcboolIf set to true, the Telegram test environment will be used 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.
use_file_databaseboolIf set to true, information about downloaded and uploaded files will be saved between application restarts.
use_chat_info_databaseboolIf set to true, the library will maintain a cache of users, basic groups, supergroups, channels and secret chats. Implies use_file_database.
use_message_databaseboolIf set to true, the library will maintain a cache of chats and messages. Implies use_chat_info_database.
use_secret_chatsboolIf set to true, support for secret chats will be enabled.
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.
device_modelstringModel of the device the application is being run on.
system_versionstringVersion of the operating system the application is being run on.
application_versionstringApplication version.
enable_storage_optimizerboolIf set to true, old files will automatically be deleted.
ignore_file_namesboolIf set to true, original file names will be ignored. Otherwise, downloaded files will be saved under names as close as possible to the original name.

More details on telegram’s documentation.