SetBackground
public struct SetBackground : Codable, Equatable, TDFunction
Changes the background selected by the user; adds background to the list of installed backgrounds
-
Undocumented
Declaration
Swift
public typealias Result = Background
-
The input background to use, null for filled backgrounds
Declaration
Swift
public let background: InputBackground
-
Background type; null for default background. The method will return error 404 if type is null
Declaration
Swift
public let type: BackgroundType
-
True, if the background is chosen for dark theme
Declaration
Swift
public let forDarkTheme: Bool
-
Changes the background selected by the user; adds background to the list of installed backgrounds
Declaration
Swift
public init(background: InputBackground, type: BackgroundType, forDarkTheme: Bool)
Parameters
background
The input background to use, null for filled backgrounds
type
Background type; null for default background. The method will return error 404 if type is null
forDarkTheme
True, if the background is chosen for dark theme