diff options
| author | levlam <levlam@telegram.org> | 2026-01-06 16:06:40 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2026-01-06 16:06:40 +0300 |
| commit | 2821de3d997b1798fb10b482da1d3f9170f98b7d (patch) | |
| tree | 118f673b94fe5531e3741e15036db31413a9650b /td/telegram/StarGift.cpp | |
| parent | 921286b8281c0c3e7dc8e0d9abeaf69bb677277f (diff) | |
Add upgradedGift.is_burned.
Diffstat (limited to 'td/telegram/StarGift.cpp')
| -rw-r--r-- | td/telegram/StarGift.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/td/telegram/StarGift.cpp b/td/telegram/StarGift.cpp index d16692d29..8d7a53632 100644 --- a/td/telegram/StarGift.cpp +++ b/td/telegram/StarGift.cpp @@ -73,6 +73,7 @@ StarGift::StarGift(Td *td, telegram_api::object_ptr<telegram_api::StarGift> star } } offer_min_star_count_ = StarManager::get_star_count(star_gift->offer_min_stars_); + is_burned_ = star_gift->burned_; is_theme_available_ = star_gift->theme_available_; if (star_gift->released_by_ != nullptr) { released_by_dialog_id_ = DialogId(star_gift->released_by_); @@ -238,7 +239,7 @@ td_api::object_ptr<td_api::upgradedGift> StarGift::get_upgraded_gift_object(Td * return td_api::make_object<td_api::upgradedGift>( id_, regular_gift_id_, td->dialog_manager_->get_chat_id_object(released_by_dialog_id_, "upgradedGift released by"), title_, slug_, num_, - unique_availability_issued_, unique_availability_total_, is_premium_, is_theme_available_, + unique_availability_issued_, unique_availability_total_, is_burned_, is_premium_, is_theme_available_, td->dialog_manager_->get_chat_id_object(theme_dialog_id_, "upgradedGift theme"), !host_dialog_id_.is_valid() ? nullptr : get_message_sender_object(td, host_dialog_id_, "upgradedGift host"), !owner_dialog_id_.is_valid() ? nullptr : get_message_sender_object(td, owner_dialog_id_, "upgradedGift owner"), @@ -286,11 +287,12 @@ bool operator==(const StarGift &lhs, const StarGift &rhs) { lhs.has_colors_ == rhs.has_colors_ && lhs.is_for_birthday_ == rhs.is_for_birthday_ && lhs.is_auction_ == rhs.is_auction_ && lhs.is_unique_ == rhs.is_unique_ && lhs.resale_ton_only_ == rhs.resale_ton_only_ && lhs.is_theme_available_ == rhs.is_theme_available_ && - lhs.model_ == rhs.model_ && lhs.pattern_ == rhs.pattern_ && lhs.backdrop_ == rhs.backdrop_ && - lhs.original_details_ == rhs.original_details_ && lhs.title_ == rhs.title_ && lhs.slug_ == rhs.slug_ && - lhs.auction_slug_ == rhs.auction_slug_ && lhs.host_dialog_id_ == rhs.host_dialog_id_ && - lhs.owner_dialog_id_ == rhs.owner_dialog_id_ && lhs.owner_address_ == rhs.owner_address_ && - lhs.owner_name_ == rhs.owner_name_ && lhs.gift_address_ == rhs.gift_address_ && lhs.num_ == rhs.num_ && + lhs.is_burned_ == rhs.is_burned_ && lhs.model_ == rhs.model_ && lhs.pattern_ == rhs.pattern_ && + lhs.backdrop_ == rhs.backdrop_ && lhs.original_details_ == rhs.original_details_ && lhs.title_ == rhs.title_ && + lhs.slug_ == rhs.slug_ && lhs.auction_slug_ == rhs.auction_slug_ && + lhs.host_dialog_id_ == rhs.host_dialog_id_ && lhs.owner_dialog_id_ == rhs.owner_dialog_id_ && + lhs.owner_address_ == rhs.owner_address_ && lhs.owner_name_ == rhs.owner_name_ && + lhs.gift_address_ == rhs.gift_address_ && lhs.num_ == rhs.num_ && lhs.unique_availability_issued_ == rhs.unique_availability_issued_ && lhs.unique_availability_total_ == rhs.unique_availability_total_ && lhs.resale_star_count_ == rhs.resale_star_count_ && lhs.resale_ton_count_ == rhs.resale_ton_count_ && |
