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

Added initial api support of stickerset attribute in web pages.

This commit is contained in:
23rd
2024-04-18 05:14:19 +03:00
committed by John Preston
parent a3b8397361
commit f43f99cff2
6 changed files with 52 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ enum class WebPageType : uint8 {
WallPaper,
Theme,
Story,
StickerSet,
Article,
ArticleWithIV,
@@ -68,6 +69,15 @@ struct WebPageCollage {
};
struct WebPageStickerSet {
WebPageStickerSet() = default;
std::vector<not_null<DocumentData*>> items;
bool isEmoji = false;
bool isTextColor = false;
};
struct WebPageData {
WebPageData(not_null<Data::Session*> owner, const WebPageId &id);
~WebPageData();
@@ -87,6 +97,7 @@ struct WebPageData {
DocumentData *newDocument,
WebPageCollage &&newCollage,
std::unique_ptr<Iv::Data> newIv,
std::unique_ptr<WebPageStickerSet> newStickerSet,
int newDuration,
const QString &newAuthor,
bool newHasLargeMedia,
@@ -114,6 +125,7 @@ struct WebPageData {
DocumentData *document = nullptr;
WebPageCollage collage;
std::unique_ptr<Iv::Data> iv;
std::unique_ptr<WebPageStickerSet> stickerSet;
int duration = 0;
TimeId pendingTill = 0;
uint32 version : 30 = 0;