Update API scheme to layer 220.

Allow offering to buy gifts.
This commit is contained in:
John Preston
2025-11-28 11:37:32 +04:00
parent 4439cbf553
commit 23880ac6c1
15 changed files with 281 additions and 74 deletions
+1
View File
@@ -930,6 +930,7 @@ std::optional<Data::StarGift> FromTL(
.themeUser = themeUser,
.nanoTonForResale = FindTonForResale(data.vresell_amount()),
.starsForResale = FindStarsForResale(data.vresell_amount()),
.starsMinOffer = data.voffer_min_stars().value_or(-1),
.number = data.vnum().v,
.onlyAcceptTon = data.is_resale_ton_only(),
.canBeTheme = data.is_theme_available(),