Background
public struct Background : Codable, Equatable, FunctionResult
Describes a chat background
-
Unique background identifier
Declaration
Swift
public let id: TDInt64
-
True, if this is one of default backgrounds
Declaration
Swift
public let isDefault: Bool
-
True, if the background is dark and is recommended to be used with dark theme
Declaration
Swift
public let isDark: Bool
-
Unique background name
Declaration
Swift
public let name: String
-
Document with the background; may be null. Null only for filled backgrounds
Declaration
Swift
public let document: Document?
-
Type of the background
Declaration
Swift
public let type: BackgroundType
-
Describes a chat background
Declaration
Swift
public init(id: TDInt64, isDefault: Bool, isDark: Bool, name: String, document: Document?, type: BackgroundType)
Parameters
id
Unique background identifier
isDefault
True, if this is one of default backgrounds
isDark
True, if the background is dark and is recommended to be used with dark theme
name
Unique background name
document
Document with the background; may be null. Null only for filled backgrounds
type
Type of the background