2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Support business working hours API.

This commit is contained in:
John Preston
2024-02-22 22:00:11 +04:00
parent 4d12f1c0ef
commit dd0bdd62fb
9 changed files with 177 additions and 65 deletions

View File

@@ -73,42 +73,43 @@ struct PeerUpdate {
TranslationDisabled = (1ULL << 13),
Color = (1ULL << 14),
BackgroundEmoji = (1ULL << 15),
StoriesState = (1ULL << 16),
// For users
CanShareContact = (1ULL << 16),
IsContact = (1ULL << 17),
PhoneNumber = (1ULL << 18),
OnlineStatus = (1ULL << 19),
BotCommands = (1ULL << 20),
BotCanBeInvited = (1ULL << 21),
BotStartToken = (1ULL << 22),
CommonChats = (1ULL << 23),
HasCalls = (1ULL << 24),
SupportInfo = (1ULL << 25),
IsBot = (1ULL << 26),
EmojiStatus = (1ULL << 27),
StoriesState = (1ULL << 28),
CanShareContact = (1ULL << 17),
IsContact = (1ULL << 18),
PhoneNumber = (1ULL << 19),
OnlineStatus = (1ULL << 20),
BotCommands = (1ULL << 21),
BotCanBeInvited = (1ULL << 22),
BotStartToken = (1ULL << 23),
CommonChats = (1ULL << 24),
HasCalls = (1ULL << 25),
SupportInfo = (1ULL << 26),
IsBot = (1ULL << 27),
EmojiStatus = (1ULL << 28),
BusinessDetails = (1ULL << 29),
// For chats and channels
InviteLinks = (1ULL << 29),
Members = (1ULL << 30),
Admins = (1ULL << 31),
BannedUsers = (1ULL << 32),
Rights = (1ULL << 33),
PendingRequests = (1ULL << 34),
Reactions = (1ULL << 35),
InviteLinks = (1ULL << 30),
Members = (1ULL << 31),
Admins = (1ULL << 32),
BannedUsers = (1ULL << 33),
Rights = (1ULL << 34),
PendingRequests = (1ULL << 35),
Reactions = (1ULL << 36),
// For channels
ChannelAmIn = (1ULL << 36),
StickersSet = (1ULL << 37),
EmojiSet = (1ULL << 38),
ChannelLinkedChat = (1ULL << 39),
ChannelLocation = (1ULL << 40),
Slowmode = (1ULL << 41),
GroupCall = (1ULL << 42),
ChannelAmIn = (1ULL << 37),
StickersSet = (1ULL << 38),
EmojiSet = (1ULL << 39),
ChannelLinkedChat = (1ULL << 40),
ChannelLocation = (1ULL << 41),
Slowmode = (1ULL << 42),
GroupCall = (1ULL << 43),
// For iteration
LastUsedBit = (1ULL << 42),
LastUsedBit = (1ULL << 43),
};
using Flags = base::flags<Flag>;
friend inline constexpr auto is_flag_type(Flag) { return true; }