pub struct TdlibParameters {Show 15 fields
pub use_test_dc: bool,
pub database_directory: String,
pub files_directory: String,
pub use_file_database: bool,
pub use_chat_info_database: bool,
pub use_message_database: bool,
pub use_secret_chats: bool,
pub api_id: i32,
pub api_hash: String,
pub system_language_code: String,
pub device_model: String,
pub system_version: String,
pub application_version: String,
pub enable_storage_optimizer: bool,
pub ignore_file_names: bool,
}Expand description
Contains parameters for TDLib initialization
Fields§
§use_test_dc: boolIf set to true, the Telegram test environment will be used instead of the production environment
database_directory: StringThe path to the directory for the persistent database; if empty, the current working directory will be used
files_directory: StringThe path to the directory for storing files; if empty, database_directory will be used
use_file_database: boolIf set to true, information about downloaded and uploaded files will be saved between application restarts
use_chat_info_database: boolIf set to true, the library will maintain a cache of users, basic groups, supergroups, channels and secret chats. Implies use_file_database
use_message_database: boolIf set to true, the library will maintain a cache of chats and messages. Implies use_chat_info_database
use_secret_chats: boolIf set to true, support for secret chats will be enabled
api_id: i32Application identifier for Telegram API access, which can be obtained at https://my.telegram.org
api_hash: StringApplication identifier hash for Telegram API access, which can be obtained at https://my.telegram.org
system_language_code: StringIETF language tag of the user’s operating system language; must be non-empty
device_model: StringModel of the device the application is being run on; must be non-empty
system_version: StringVersion of the operating system the application is being run on; must be non-empty
application_version: StringApplication version; must be non-empty
enable_storage_optimizer: boolIf set to true, old files will automatically be deleted
ignore_file_names: boolIf 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
Trait Implementations§
Source§impl Clone for TdlibParameters
impl Clone for TdlibParameters
Source§fn clone(&self) -> TdlibParameters
fn clone(&self) -> TdlibParameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more