Function set_option

Source
pub async fn set_option(
    name: String,
    value: Option<OptionValue>,
    client_id: i32,
) -> Result<(), Error>
Expand description

Sets the value of an option. (Check the list of available options on https:core.telegram.org/tdlib/options.) Only writable options can be set. Can be called before authorization

ยงArguments

  • name - The name of the option
  • value - The new value of the option; pass null to reset option value to a default value
  • client_id - The client id to send the request to