Add GiveawayWinners.prize_star_count.

This commit is contained in:
levlam 2024-08-28 12:32:03 +03:00
parent 1548e96656
commit c08e6b3b84

View File

@ -2515,8 +2515,13 @@ class Client::JsonGiveawayWinners final : public td::Jsonable {
} }
break; break;
} }
case td_api::giveawayPrizeStars::ID: case td_api::giveawayPrizeStars::ID: {
auto star_count = static_cast<const td_api::giveawayPrizeStars *>(giveaway_winners_->prize_.get())->star_count_;
if (star_count > 0) {
object("prize_star_count", star_count);
}
break; break;
}
default: default:
UNREACHABLE(); UNREACHABLE();
} }