WinterGram/Telegram/WatchApp/Packages/TDShim/Sources/TDShim/Generated/Models/Background.swift
2026-06-01 17:23:05 +02:00

51 lines
1.2 KiB
Swift

//
// Background.swift
// tl2swift
//
// Generated automatically. Any changes will be lost!
// Based on TDLib 1.8.64-49b3bcbb-49b3bcbb
// https://github.com/tdlib/td/tree/49b3bcbb
//
import Foundation
/// Describes a chat background
public struct Background: Codable, Equatable, Hashable, Identifiable {
/// Document with the background; may be null. Null only for filled and chat theme backgrounds
public let document: Document?
/// Unique background identifier
public let id: TdInt64
/// True, if the background is dark and is recommended to be used with dark theme
public let isDark: Bool
/// True, if this is one of default backgrounds
public let isDefault: Bool
/// Unique background name
public let name: String
/// Type of the background
public let type: BackgroundType
public init(
document: Document?,
id: TdInt64,
isDark: Bool,
isDefault: Bool,
name: String,
type: BackgroundType
) {
self.document = document
self.id = id
self.isDark = isDark
self.isDefault = isDefault
self.name = name
self.type = type
}
}