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
idUnique background identifier
isDefaultTrue, if this is one of default backgrounds
isDarkTrue, if the background is dark and is recommended to be used with dark theme
nameUnique background name
documentDocument with the background; may be null. Null only for filled backgrounds
typeType of the background
View on GitHub
Install in Dash
Background Structure Reference