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

Update API scheme on layer 142: Premium stickers.

This commit is contained in:
John Preston
2022-04-21 15:06:50 +04:00
parent c3386fba52
commit 5874ae7c51
18 changed files with 85 additions and 16 deletions

View File

@@ -46,6 +46,7 @@ enum class UserDataFlag {
CanPinMessages = (1 << 11),
DiscardMinPhoto = (1 << 12),
Self = (1 << 13),
Premium = (1 << 14),
};
inline constexpr bool is_flag_type(UserDataFlag) { return true; };
using UserDataFlags = base::flags<UserDataFlag>;
@@ -96,6 +97,9 @@ public:
[[nodiscard]] bool isFake() const {
return flags() & UserDataFlag::Fake;
}
[[nodiscard]] bool isPremium() const {
return flags() & UserDataFlag::Premium;
}
[[nodiscard]] bool isBotInlineGeo() const {
return flags() & UserDataFlag::BotInlineGeo;
}