Return all applied slots in getChatBoostStatus.

This commit is contained in:
levlam 2023-10-20 23:11:45 +03:00
parent 18df460fd7
commit cfb802eb9d
2 changed files with 5 additions and 4 deletions

View File

@ -3512,7 +3512,7 @@ prepaidPremiumGiveaway id:int64 user_count:int32 month_count:int32 payment_date:
//@description Describes current boost status of a chat //@description Describes current boost status of a chat
//@boost_url An HTTP URL, which can be used to boost the 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 //@level Current boost level of the chat
//@boost_count The number of times the chat was boosted //@boost_count The number of times the chat was boosted
//@current_level_boost_count The number of boosts added to reach the current level //@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_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 //@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 //@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<prepaidPremiumGiveaway> = ChatBoostStatus; chatBoostStatus boost_url:string applied_slots:vector<int32> 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<prepaidPremiumGiveaway> = ChatBoostStatus;
//@description Describes a boost of a chat //@description Describes a boost of a chat
//@count The number of boosts applied //@count The number of boosts applied

View File

@ -77,8 +77,9 @@ class GetBoostsStatusQuery final : public Td::ResultHandler {
giveaway->id_, giveaway->quantity_, giveaway->months_, giveaway->date_); giveaway->id_, giveaway->quantity_, giveaway->months_, giveaway->date_);
}); });
promise_.set_value(td_api::make_object<td_api::chatBoostStatus>( promise_.set_value(td_api::make_object<td_api::chatBoostStatus>(
result->boost_url_, result->my_boost_, result->level_, result->boosts_, result->current_level_boosts_, result->boost_url_, std::move(result->my_boost_slots_), result->level_, result->boosts_,
result->next_level_boosts_, premium_member_count, premium_member_percentage, std::move(giveaways))); result->current_level_boosts_, result->next_level_boosts_, premium_member_count, premium_member_percentage,
std::move(giveaways)));
} }
void on_error(Status status) final { void on_error(Status status) final {