2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Allow buying reselling gifts.

This commit is contained in:
John Preston
2025-04-18 18:41:13 +04:00
parent 94e0ac3f54
commit c726bef740
14 changed files with 214 additions and 45 deletions

View File

@@ -65,6 +65,7 @@ struct CreditsHistoryEntry final {
uint64 bareGiveawayMsgId = 0;
uint64 bareGiftStickerId = 0;
uint64 bareGiftOwnerId = 0;
uint64 bareGiftResaleRecipientId = 0;
uint64 bareActorId = 0;
uint64 bareEntryOwnerId = 0;
uint64 giftChannelSavedId = 0;

View File

@@ -46,6 +46,7 @@ struct UniqueGift {
PeerId ownerId = 0;
int number = 0;
int starsForTransfer = -1;
int starsForResale = -1;
TimeId exportAt = 0;
UniqueGiftModel model;
UniqueGiftPattern pattern;