Add GiveawayCompleted.is_star_giveaway.

This commit is contained in:
levlam 2024-08-30 11:45:49 +03:00
parent c96ab13288
commit 4acd7d28e6

View File

@ -2551,6 +2551,9 @@ class Client::JsonGiveawayCompleted final : public td::Jsonable {
if (giveaway_completed_->unclaimed_prize_count_ > 0) {
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 =
client_->get_message(chat_id_, giveaway_completed_->giveaway_message_id_, true);
if (giveaway_message != nullptr) {