mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Update API scheme to layer 197.
This commit is contained in:
@@ -59,6 +59,24 @@ struct FileReferenceAccumulator {
|
||||
push(data.vdocuments());
|
||||
}, [&](const MTPDwebPageAttributeStickerSet &data) {
|
||||
push(data.vstickers());
|
||||
}, [&](const MTPDwebPageAttributeUniqueStarGift &data) {
|
||||
push(data.vgift());
|
||||
});
|
||||
}
|
||||
void push(const MTPStarGift &data) {
|
||||
data.match([&](const MTPDstarGift &data) {
|
||||
push(data.vsticker());
|
||||
}, [&](const MTPDstarGiftUnique &data) {
|
||||
push(data.vattributes());
|
||||
});
|
||||
}
|
||||
void push(const MTPStarGiftAttribute &data) {
|
||||
data.match([&](const MTPDstarGiftAttributeModel &data) {
|
||||
push(data.vdocument());
|
||||
}, [&](const MTPDstarGiftAttributePattern &data) {
|
||||
push(data.vdocument());
|
||||
}, [&](const MTPDstarGiftAttributeBackdrop &data) {
|
||||
}, [&](const MTPDstarGiftAttributeOriginalDetails &data) {
|
||||
});
|
||||
}
|
||||
void push(const MTPWebPage &data) {
|
||||
|
@@ -3572,6 +3572,8 @@ void Session::webpageApplyFields(
|
||||
return (DocumentData*)nullptr;
|
||||
}, [](const MTPDwebPageAttributeStickerSet &) {
|
||||
return (DocumentData*)nullptr;
|
||||
}, [](const MTPDwebPageAttributeUniqueStarGift &) {
|
||||
return (DocumentData*)nullptr;
|
||||
});
|
||||
if (result) {
|
||||
return result;
|
||||
|
@@ -37,7 +37,9 @@ struct UniqueGiftOriginalDetails {
|
||||
};
|
||||
|
||||
struct UniqueGift {
|
||||
QString slug;
|
||||
QString title;
|
||||
QString ownerName;
|
||||
PeerId ownerId = 0;
|
||||
int number = 0;
|
||||
int starsForTransfer = -1;
|
||||
|
@@ -87,6 +87,7 @@ using UpdateFlag = StoryUpdate::Flag;
|
||||
}, [&](const MTPDmediaAreaChannelPost &data) {
|
||||
}, [&](const MTPDmediaAreaUrl &data) {
|
||||
}, [&](const MTPDmediaAreaWeather &data) {
|
||||
}, [&](const MTPDmediaAreaStarGift &data) {
|
||||
}, [&](const MTPDinputMediaAreaChannelPost &data) {
|
||||
LOG(("API Error: Unexpected inputMediaAreaChannelPost from API."));
|
||||
}, [&](const MTPDinputMediaAreaVenue &data) {
|
||||
@@ -110,6 +111,7 @@ using UpdateFlag = StoryUpdate::Flag;
|
||||
}, [&](const MTPDmediaAreaChannelPost &data) {
|
||||
}, [&](const MTPDmediaAreaUrl &data) {
|
||||
}, [&](const MTPDmediaAreaWeather &data) {
|
||||
}, [&](const MTPDmediaAreaStarGift &data) {
|
||||
}, [&](const MTPDinputMediaAreaChannelPost &data) {
|
||||
LOG(("API Error: Unexpected inputMediaAreaChannelPost from API."));
|
||||
}, [&](const MTPDinputMediaAreaVenue &data) {
|
||||
@@ -133,6 +135,7 @@ using UpdateFlag = StoryUpdate::Flag;
|
||||
});
|
||||
}, [&](const MTPDmediaAreaUrl &data) {
|
||||
}, [&](const MTPDmediaAreaWeather &data) {
|
||||
}, [&](const MTPDmediaAreaStarGift &data) {
|
||||
}, [&](const MTPDinputMediaAreaChannelPost &data) {
|
||||
LOG(("API Error: Unexpected inputMediaAreaChannelPost from API."));
|
||||
}, [&](const MTPDinputMediaAreaVenue &data) {
|
||||
@@ -154,6 +157,7 @@ using UpdateFlag = StoryUpdate::Flag;
|
||||
.url = qs(data.vurl()),
|
||||
});
|
||||
}, [&](const MTPDmediaAreaWeather &data) {
|
||||
}, [&](const MTPDmediaAreaStarGift &data) {
|
||||
}, [&](const MTPDinputMediaAreaChannelPost &data) {
|
||||
LOG(("API Error: Unexpected inputMediaAreaChannelPost from API."));
|
||||
}, [&](const MTPDinputMediaAreaVenue &data) {
|
||||
@@ -180,6 +184,7 @@ using UpdateFlag = StoryUpdate::Flag;
|
||||
-274.,
|
||||
1'000'000.)),
|
||||
});
|
||||
}, [&](const MTPDmediaAreaStarGift &data) {
|
||||
}, [&](const MTPDinputMediaAreaChannelPost &data) {
|
||||
LOG(("API Error: Unexpected inputMediaAreaChannelPost from API."));
|
||||
}, [&](const MTPDinputMediaAreaVenue &data) {
|
||||
|
Reference in New Issue
Block a user