diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index f41db4b6d..436ff6420 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -3512,7 +3512,7 @@ prepaidPremiumGiveaway id:int64 user_count:int32 month_count:int32 payment_date: //@description Describes current boost status of a chat //@boost_url An HTTP URL, which can be used to boost the chat -//@is_boosted True, if the current user has already boosted the chat +//@applied_slots Identifiers of boost slots of the current user applied to the chat //@level Current boost level of the chat //@boost_count The number of times the chat was boosted //@current_level_boost_count The number of boosts added to reach the current level @@ -3520,7 +3520,7 @@ prepaidPremiumGiveaway id:int64 user_count:int32 month_count:int32 payment_date: //@premium_member_count Approximate number of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator in the chat //@premium_member_percentage A percentage of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator in the chat //@prepaid_giveaways The list of prepaid giveaways available for the chat; only for chat administrators -chatBoostStatus boost_url:string is_boosted:Bool level:int32 boost_count:int32 current_level_boost_count:int32 next_level_boost_count:int32 premium_member_count:int32 premium_member_percentage:double prepaid_giveaways:vector = ChatBoostStatus; +chatBoostStatus boost_url:string applied_slots:vector level:int32 boost_count:int32 current_level_boost_count:int32 next_level_boost_count:int32 premium_member_count:int32 premium_member_percentage:double prepaid_giveaways:vector = ChatBoostStatus; //@description Describes a boost of a chat //@count The number of boosts applied diff --git a/td/telegram/BoostManager.cpp b/td/telegram/BoostManager.cpp index 74c6a6acf..34a24a3b6 100644 --- a/td/telegram/BoostManager.cpp +++ b/td/telegram/BoostManager.cpp @@ -77,8 +77,9 @@ class GetBoostsStatusQuery final : public Td::ResultHandler { giveaway->id_, giveaway->quantity_, giveaway->months_, giveaway->date_); }); promise_.set_value(td_api::make_object( - result->boost_url_, result->my_boost_, result->level_, result->boosts_, result->current_level_boosts_, - result->next_level_boosts_, premium_member_count, premium_member_percentage, std::move(giveaways))); + result->boost_url_, std::move(result->my_boost_slots_), result->level_, result->boosts_, + result->current_level_boosts_, result->next_level_boosts_, premium_member_count, premium_member_percentage, + std::move(giveaways))); } void on_error(Status status) final {