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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user