From 1548e96656b5214bcf6d98c5f0b6ed758d68977e Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 28 Aug 2024 12:29:44 +0300 Subject: [PATCH] Add Giveaway.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 468af8d..c7c8db7 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -2470,8 +2470,13 @@ class Client::JsonGiveaway final : public td::Jsonable { } break; } - case td_api::giveawayPrizeStars::ID: + case td_api::giveawayPrizeStars::ID: { + auto star_count = static_cast(giveaway_->prize_.get())->star_count_; + if (star_count > 0) { + object("prize_star_count", star_count); + } break; + } default: UNREACHABLE(); }