mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-12-24 19:55:52 +01:00
Add GiveawayWinners.prize_star_count.
This commit is contained in:
parent
1548e96656
commit
c08e6b3b84
@ -2515,8 +2515,13 @@ class Client::JsonGiveawayWinners final : public td::Jsonable {
|
||||
}
|
||||
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;
|
||||
}
|
||||
default:
|
||||
UNREACHABLE();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user