aboutsummaryrefslogtreecommitdiffhomepage
path: root/td/telegram/StarGift.cpp
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2026-01-06 16:10:16 +0300
committerlevlam <levlam@telegram.org>2026-01-06 16:10:16 +0300
commit2a8d31ec77ac64b7414be37e1733aab0acab1a54 (patch)
tree161bcda1abb911e5359b46cdf84ba62b2327f798 /td/telegram/StarGift.cpp
parent2821de3d997b1798fb10b482da1d3f9170f98b7d (diff)
Add upgradedGift.is_crafted.
Diffstat (limited to 'td/telegram/StarGift.cpp')
-rw-r--r--td/telegram/StarGift.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/td/telegram/StarGift.cpp b/td/telegram/StarGift.cpp
index 8d7a53632..621bb0323 100644
--- a/td/telegram/StarGift.cpp
+++ b/td/telegram/StarGift.cpp
@@ -74,6 +74,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_crafted_ = star_gift->crafted_;
is_theme_available_ = star_gift->theme_available_;
if (star_gift->released_by_ != nullptr) {
released_by_dialog_id_ = DialogId(star_gift->released_by_);
@@ -239,8 +240,8 @@ 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_burned_, is_premium_, is_theme_available_,
- td->dialog_manager_->get_chat_id_object(theme_dialog_id_, "upgradedGift theme"),
+ unique_availability_issued_, unique_availability_total_, is_burned_, is_crafted_, 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"),
owner_address_, owner_name_, gift_address_, model_.get_upgraded_gift_model_object(td),
@@ -287,12 +288,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.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.is_burned_ == rhs.is_burned_ && lhs.is_crafted_ == rhs.is_crafted_ && 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_ &&