mirror of
https://github.com/PaiGramTeam/telegram-bot-api.git
synced 2024-11-25 18:03:55 +00:00
Add Giveaway.prize_star_count.
This commit is contained in:
parent
7422214945
commit
1548e96656
@ -2470,8 +2470,13 @@ class Client::JsonGiveaway 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_->prize_.get())->star_count_;
|
||||||
|
if (star_count > 0) {
|
||||||
|
object("prize_star_count", star_count);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user