Interface SetOption

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. Request type for Tdjson#setOption.

interface SetOption {
    @type: "setOption";
    name: string;
    value: OptionValue;
}

Properties

Properties

@type: "setOption"
name: string

The name of the option.

The new value of the option; pass null to reset option value to a default value.