mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Update API scheme on layer 142: Premium stickers.
This commit is contained in:
@@ -78,7 +78,6 @@ struct StickerData : public DocumentAdditionalData {
|
||||
struct SongData : public DocumentAdditionalData {
|
||||
int32 duration = 0;
|
||||
QString title, performer;
|
||||
|
||||
};
|
||||
|
||||
struct VoiceData : public DocumentAdditionalData {
|
||||
@@ -172,6 +171,7 @@ public:
|
||||
[[nodiscard]] bool isPatternWallPaper() const;
|
||||
[[nodiscard]] bool isPatternWallPaperPNG() const;
|
||||
[[nodiscard]] bool isPatternWallPaperSVG() const;
|
||||
[[nodiscard]] bool isPremiumSticker() const;
|
||||
|
||||
[[nodiscard]] bool hasThumbnail() const;
|
||||
[[nodiscard]] bool thumbnailLoading() const;
|
||||
@@ -190,7 +190,8 @@ public:
|
||||
void updateThumbnails(
|
||||
const InlineImageLocation &inlineThumbnail,
|
||||
const ImageWithLocation &thumbnail,
|
||||
const ImageWithLocation &videoThumbnail);
|
||||
const ImageWithLocation &videoThumbnail,
|
||||
bool isPremiumSticker);
|
||||
|
||||
[[nodiscard]] QByteArray inlineThumbnailBytes() const {
|
||||
return _inlineThumbnailBytes;
|
||||
@@ -279,6 +280,7 @@ private:
|
||||
HasAttachedStickers = 0x040,
|
||||
InlineThumbnailIsPath = 0x080,
|
||||
ForceToCache = 0x100,
|
||||
PremiumSticker = 0x200,
|
||||
};
|
||||
using Flags = base::flags<Flag>;
|
||||
friend constexpr bool is_flag_type(Flag) { return true; };
|
||||
|
Reference in New Issue
Block a user