2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Update API scheme to layer 197.

This commit is contained in:
John Preston
2025-01-07 09:41:41 +04:00
parent b412ee258d
commit ba34d92cd3
7 changed files with 48 additions and 7 deletions

View File

@@ -805,8 +805,11 @@ std::optional<Data::StarGift> FromTL(
auto result = Data::StarGift{
.id = uint64(data.vid().v),
.unique = std::make_shared<Data::UniqueGift>(Data::UniqueGift{
.slug = qs(data.vslug()),
.title = qs(data.vtitle()),
.ownerId = peerFromUser(UserId(data.vowner_id().v)),
.ownerName = qs(data.vowner_name().value_or_empty()),
.ownerId = peerFromUser(
UserId(data.vowner_id().value_or_empty())),
.number = data.vnum().v,
.model = *model,
.pattern = *pattern,