aboutsummaryrefslogtreecommitdiffhomepage
path: root/td/telegram/StarGiftAttribute.cpp
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2025-05-05 16:35:23 +0300
committerlevlam <levlam@telegram.org>2025-05-05 16:35:23 +0300
commit71b4e1ffa9c41eca2c7cf5403e40ae65a16f56b3 (patch)
treeefaf777715c3e2f16085a3c1ddc8c1bf67037912 /td/telegram/StarGiftAttribute.cpp
parent47c3370d482a6930745b9da9f1815f5a2215282f (diff)
Add upgradedGiftBackdrop.id.
Diffstat (limited to 'td/telegram/StarGiftAttribute.cpp')
-rw-r--r--td/telegram/StarGiftAttribute.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/td/telegram/StarGiftAttribute.cpp b/td/telegram/StarGiftAttribute.cpp
index c2567ab91..cb03e0845 100644
--- a/td/telegram/StarGiftAttribute.cpp
+++ b/td/telegram/StarGiftAttribute.cpp
@@ -56,6 +56,7 @@ bool operator==(const StarGiftAttributeSticker &lhs, const StarGiftAttributeStic
StarGiftAttributeBackdrop::StarGiftAttributeBackdrop(
telegram_api::object_ptr<telegram_api::starGiftAttributeBackdrop> &&attribute)
: name_(std::move(attribute->name_))
+ , id_(attribute->backdrop_id_)
, center_color_(attribute->center_color_)
, edge_color_(attribute->edge_color_)
, pattern_color_(attribute->pattern_color_)
@@ -66,15 +67,15 @@ StarGiftAttributeBackdrop::StarGiftAttributeBackdrop(
td_api::object_ptr<td_api::upgradedGiftBackdrop> StarGiftAttributeBackdrop::get_upgraded_gift_backdrop_object() const {
CHECK(is_valid());
return td_api::make_object<td_api::upgradedGiftBackdrop>(
- name_,
+ id_, name_,
td_api::make_object<td_api::upgradedGiftBackdropColors>(center_color_, edge_color_, pattern_color_, text_color_),
rarity_permille_);
}
bool operator==(const StarGiftAttributeBackdrop &lhs, const StarGiftAttributeBackdrop &rhs) {
- return lhs.name_ == rhs.name_ && lhs.center_color_ == rhs.center_color_ && lhs.edge_color_ == rhs.edge_color_ &&
- lhs.pattern_color_ == rhs.pattern_color_ && lhs.text_color_ == rhs.text_color_ &&
- lhs.rarity_permille_ == rhs.rarity_permille_;
+ return lhs.id_ == rhs.id_ && lhs.name_ == rhs.name_ && lhs.center_color_ == rhs.center_color_ &&
+ lhs.edge_color_ == rhs.edge_color_ && lhs.pattern_color_ == rhs.pattern_color_ &&
+ lhs.text_color_ == rhs.text_color_ && lhs.rarity_permille_ == rhs.rarity_permille_;
}
StarGiftAttributeOriginalDetails::StarGiftAttributeOriginalDetails(