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: bool
If set to true, the Telegram test environment will be used instead of the production environment
database_directory: String
The path to the directory for the persistent database; if empty, the current working directory will be used
files_directory: String
The path to the directory for storing files; if empty, database_directory will be used
use_file_database: bool
If set to true, information about downloaded and uploaded files will be saved between application restarts
use_chat_info_database: bool
If 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: bool
If set to true, the library will maintain a cache of chats and messages. Implies use_chat_info_database
use_secret_chats: bool
If set to true, support for secret chats will be enabled
api_id: i32
Application identifier for Telegram API access, which can be obtained at https://my.telegram.org
api_hash: String
Application identifier hash for Telegram API access, which can be obtained at https://my.telegram.org
system_language_code: String
IETF language tag of the user’s operating system language; must be non-empty
device_model: String
Model of the device the application is being run on; must be non-empty
system_version: String
Version of the operating system the application is being run on; must be non-empty
application_version: String
Application version; must be non-empty
enable_storage_optimizer: bool
If set to true, old files will automatically be deleted
ignore_file_names: bool
If 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