diff options
| author | levlam <levlam@telegram.org> | 2025-12-04 18:45:09 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2025-12-04 18:45:09 +0300 |
| commit | f5c1c45d278a7aeb9d294c9239253ff7f64373f6 (patch) | |
| tree | 9cfb9403655466ffe0b6f99aeafa190546a6fcfc /td/telegram/StarGift.cpp | |
| parent | 2383d5db9fac3085bc4a923719fc0143a6f8f2cb (diff) | |
Add upgradedGift.value_usd_amount.
Diffstat (limited to 'td/telegram/StarGift.cpp')
| -rw-r--r-- | td/telegram/StarGift.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/td/telegram/StarGift.cpp b/td/telegram/StarGift.cpp index 623dcad26..ffd5591e7 100644 --- a/td/telegram/StarGift.cpp +++ b/td/telegram/StarGift.cpp @@ -126,6 +126,7 @@ StarGift::StarGift(Td *td, telegram_api::object_ptr<telegram_api::StarGift> &&st } value_currency_ = std::move(star_gift->value_currency_); value_amount_ = star_gift->value_amount_; + value_usd_amount_ = star_gift->value_usd_amount_; if (star_gift->theme_peer_ != nullptr) { theme_dialog_id_ = DialogId(star_gift->theme_peer_); } @@ -237,7 +238,7 @@ td_api::object_ptr<td_api::upgradedGift> StarGift::get_upgraded_gift_object(Td * pattern_.get_upgraded_gift_symbol_object(td), backdrop_.get_upgraded_gift_backdrop_object(), original_details_.get_upgraded_gift_original_details_object(td), peer_color_ == nullptr ? nullptr : peer_color_->get_upgraded_gift_colors_object(), std::move(resale_parameters), - value_currency_, value_amount_); + value_currency_, value_amount_, value_usd_amount_); } td_api::object_ptr<td_api::giftForResale> StarGift::get_gift_for_resale_object(Td *td) const { @@ -287,8 +288,8 @@ bool operator==(const StarGift &lhs, const StarGift &rhs) { lhs.resale_star_count_ == rhs.resale_star_count_ && lhs.resale_ton_count_ == rhs.resale_ton_count_ && lhs.regular_gift_id_ == rhs.regular_gift_id_ && lhs.gifts_per_round_ == rhs.gifts_per_round_ && lhs.auction_start_date_ == rhs.auction_start_date_ && lhs.value_currency_ == rhs.value_currency_ && - lhs.value_amount_ == rhs.value_amount_ && lhs.theme_dialog_id_ == rhs.theme_dialog_id_ && - lhs.peer_color_ == rhs.peer_color_; + lhs.value_amount_ == rhs.value_amount_ && lhs.value_usd_amount_ == rhs.value_usd_amount_ && + lhs.theme_dialog_id_ == rhs.theme_dialog_id_ && lhs.peer_color_ == rhs.peer_color_; } StringBuilder &operator<<(StringBuilder &string_builder, const StarGift &star_gift) { |
