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(); }