mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-11-30 07:52:55 +01:00
Add GiveawayCompleted.is_star_giveaway.
This commit is contained in:
parent
c96ab13288
commit
4acd7d28e6
@ -2551,6 +2551,9 @@ class Client::JsonGiveawayCompleted final : public td::Jsonable {
|
|||||||
if (giveaway_completed_->unclaimed_prize_count_ > 0) {
|
if (giveaway_completed_->unclaimed_prize_count_ > 0) {
|
||||||
object("unclaimed_prize_count", giveaway_completed_->unclaimed_prize_count_);
|
object("unclaimed_prize_count", giveaway_completed_->unclaimed_prize_count_);
|
||||||
}
|
}
|
||||||
|
if (giveaway_completed_->is_star_giveaway_) {
|
||||||
|
object("is_star_giveaway", td::JsonTrue());
|
||||||
|
}
|
||||||
const MessageInfo *giveaway_message =
|
const MessageInfo *giveaway_message =
|
||||||
client_->get_message(chat_id_, giveaway_completed_->giveaway_message_id_, true);
|
client_->get_message(chat_id_, giveaway_completed_->giveaway_message_id_, true);
|
||||||
if (giveaway_message != nullptr) {
|
if (giveaway_message != nullptr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user