SetOption
public struct SetOption : Codable, Equatable, TDFunction
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
-
Undocumented
Declaration
Swift
public typealias Result = Ok -
The name of the option
Declaration
Swift
public let name: String -
The new value of the option
Declaration
Swift
public let value: OptionValue -
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
Declaration
Swift
public init(name: String, value: OptionValue)Parameters
nameThe name of the option
valueThe new value of the option
View on GitHub
Install in Dash
SetOption Structure Reference