From c08e6b3b84092111d4411761575c30c49714c1cb Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 28 Aug 2024 12:32:03 +0300 Subject: [PATCH] Add GiveawayWinners.prize_star_count. --- telegram-bot-api/Client.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index c7c8db7..676011d 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -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(giveaway_winners_->prize_.get())->star_count_; + if (star_count > 0) { + object("prize_star_count", star_count); + } break; + } default: UNREACHABLE(); }