tdlight/td/telegram/Version.h

92 lines
2.2 KiB
C
Raw Normal View History

//
2023-01-01 00:28:08 +03:00
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2023
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#pragma once
2021-09-09 00:05:59 +03:00
#include "td/utils/common.h"
namespace td {
2023-11-09 19:37:26 +03:00
constexpr int32 MTPROTO_LAYER = 167;
enum class Version : int32 {
Initial, // 0
StoreFileId,
AddKeyHashToSecretChat,
AddDurationToAnimation,
FixStoreGameWithoutAnimation,
AddAccessHashToSecretChat, // 5
StoreFileOwnerId,
StoreFileEncryptionKey,
NetStatsCountDuration,
FixWebPageInstantViewDatabase,
FixMinUsers, // 10
FixPageBlockAudioEmptyFile,
AddMessageInvoiceProviderData,
AddCaptionEntities,
AddVenueType,
AddTermsOfService, // 15
AddContactVcard,
AddMessageUnsupportedVersion,
SupportInstantView2_0,
AddNotificationGroupInfoMaxRemovedMessageId,
SupportMinithumbnails, // 20
AddVideoCallsSupport,
AddPhotoSizeSource,
AddFolders,
SupportPolls2_0,
AddDiceEmoji, // 25
AddAnimationStickers,
AddDialogPhotoHasAnimation,
AddPhotoProgressiveSizes,
AddLiveLocationHeading,
AddLiveLocationProximityAlertDistance, // 30
SupportBannedChannels,
RemovePhotoVolumeAndLocalId,
2021-09-03 12:27:59 +03:00
Support64BitIds,
2021-10-09 15:04:17 +03:00
AddInviteLinksRequiringApproval,
2021-11-10 17:14:00 +03:00
AddKeyboardButtonFlags, // 35
2022-04-15 15:30:51 +03:00
AddAudioFlags,
2022-05-08 23:54:04 +03:00
UseServerForwardAsCopy,
AddMainDialogListPosition,
2022-05-25 19:24:40 +03:00
AddVoiceNoteFlags,
2022-06-03 16:33:49 +03:00
AddMessageStickerFlags, // 40
2022-06-17 19:16:17 +03:00
AddStickerSetListFlags,
2022-09-16 17:08:58 +03:00
AddInputInvoiceFlags,
2022-10-20 20:35:00 +03:00
AddVideoNoteFlags,
2022-11-29 14:02:05 +03:00
AddMessageChatSetTtlFlags,
2023-01-06 13:43:46 +03:00
AddMessageMediaSpoiler, // 45
MakeParticipantFlags64Bit,
2023-02-21 14:58:52 +03:00
AddDocumentFlags,
2023-05-03 20:22:16 +03:00
AddUserFlags2,
AddMessageTextFlags,
2023-10-19 16:16:44 +03:00
AddPageBlockChatLinkFlags, // 50
SupportRepliesInOtherChats,
Next
};
enum class DbVersion : int32 {
2023-07-18 18:20:43 +03:00
CreateDialogDb = 3,
AddMessageDbMediaIndex,
AddMessageDb30MediaIndex,
AddMessageDbFts,
AddMessagesCallIndex,
FixFileRemoteLocationKeyBug,
AddNotificationsSupport,
AddFolders,
AddScheduledMessages,
StorePinnedDialogsInBinlog,
AddMessageThreadSupport,
2022-11-10 19:46:17 +03:00
AddMessageThreadDatabase,
Next
};
inline constexpr int32 current_db_version() {
return static_cast<int32>(DbVersion::Next) - 1;
}
} // namespace td