Update API [skip ci]

This commit is contained in:
Ilya Laktyushin
2024-12-26 07:27:14 +04:00
parent 6605f113e5
commit 6e850130fd
122 changed files with 2689 additions and 1770 deletions

View File

@@ -30,9 +30,10 @@ public final class BotCheckoutController: ViewController {
public static func fetch(context: AccountContext, source: BotPaymentInvoiceSource) -> Signal<InputData, FetchError> {
let theme = context.sharedContext.currentPresentationData.with { $0 }.theme
let themeParams: [String: Any]?
if case .starGift = source {
switch source {
case .starGift, .starGiftUpgrade:
themeParams = nil
} else {
default:
themeParams = [
"bg_color": Int32(bitPattern: theme.list.plainBackgroundColor.rgb),
"secondary_bg_color": Int32(bitPattern: theme.list.blocksBackgroundColor.rgb),