pub fn parameters(
api_id: i32,
api_hash: impl Into<String>,
directory: impl AsRef<Path>,
) -> setTdlibParametersExpand description
Builds editable TDLib parameters with local database and file directories.
Uses directory/db and directory/files; this function does not create them.
Enables file, chat-info, and message databases. Language defaults to en,
device model to Server, and application version to this crate’s version.
Other fields retain their generated defaults, including the encryption key.
These are conveniences, not validated configuration or a security policy. Disable databases you do not need and set application metadata/encryption explicitly where appropriate. Paths are converted with lossy UTF-8 conversion.
§Examples
let mut params = td_client::parameters(12345, "api hash", "session");
params.use_message_database = false;
params.device_model = "My application".into();
assert!(!params.use_message_database);