From dd5bd9fff6e216b236226ee4a5fb2bb08af9964a Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 28 Nov 2023 14:11:46 +0300 Subject: [PATCH] Add td_api::premiumFeatureBackgroundForBoth. --- td/generate/scheme/td_api.tl | 3 +++ td/telegram/Premium.cpp | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index bfb49a3e3..3510c1318 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -4537,6 +4537,9 @@ premiumFeatureChatBoost = PremiumFeature; //@description The ability to choose accent color for replies and user profile premiumFeatureAccentColor = PremiumFeature; +//@description The ability to set private chat background for both users +premiumFeatureBackgroundForBoth = PremiumFeature; + //@class PremiumStoryFeature @description Describes a story feature available to Premium users diff --git a/td/telegram/Premium.cpp b/td/telegram/Premium.cpp index 975fb2a7d..3e3bc17f3 100644 --- a/td/telegram/Premium.cpp +++ b/td/telegram/Premium.cpp @@ -94,6 +94,9 @@ static td_api::object_ptr get_premium_feature_object(Sli if (premium_feature == "peer_color") { return td_api::make_object(); } + if (premium_feature == "wallpaper") { + return td_api::make_object(); + } return nullptr; } @@ -728,6 +731,8 @@ static string get_premium_source(const td_api::PremiumFeature *feature) { return "channel_boost"; case td_api::premiumFeatureAccentColor::ID: return "peer_color"; + case td_api::premiumFeatureBackgroundForBoth::ID: + return "wallpaper"; default: UNREACHABLE(); }