2018-12-31 22:04:05 +03:00
|
|
|
//
|
2023-01-01 00:28:08 +03:00
|
|
|
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2023
|
2018-12-31 22:04:05 +03:00
|
|
|
//
|
|
|
|
// 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"
|
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
namespace td {
|
|
|
|
|
2023-11-09 19:37:26 +03:00
|
|
|
constexpr int32 MTPROTO_LAYER = 167;
|
2019-08-15 18:16:09 +03:00
|
|
|
|
2018-12-31 22:04:05 +03:00
|
|
|
enum class Version : int32 {
|
2020-07-27 17:52:21 +03:00
|
|
|
Initial, // 0
|
2018-12-31 22:04:05 +03:00
|
|
|
StoreFileId,
|
|
|
|
AddKeyHashToSecretChat,
|
|
|
|
AddDurationToAnimation,
|
|
|
|
FixStoreGameWithoutAnimation,
|
2020-07-27 17:52:21 +03:00
|
|
|
AddAccessHashToSecretChat, // 5
|
2018-12-31 22:04:05 +03:00
|
|
|
StoreFileOwnerId,
|
|
|
|
StoreFileEncryptionKey,
|
|
|
|
NetStatsCountDuration,
|
|
|
|
FixWebPageInstantViewDatabase,
|
2020-07-27 17:52:21 +03:00
|
|
|
FixMinUsers, // 10
|
2018-12-31 22:04:05 +03:00
|
|
|
FixPageBlockAudioEmptyFile,
|
|
|
|
AddMessageInvoiceProviderData,
|
2018-01-30 20:06:54 +03:00
|
|
|
AddCaptionEntities,
|
2018-04-09 21:06:37 +03:00
|
|
|
AddVenueType,
|
2020-07-27 17:52:21 +03:00
|
|
|
AddTermsOfService, // 15
|
2018-06-26 00:10:53 +03:00
|
|
|
AddContactVcard,
|
2018-12-25 20:47:37 +03:00
|
|
|
AddMessageUnsupportedVersion,
|
2019-02-06 21:00:00 +03:00
|
|
|
SupportInstantView2_0,
|
2019-04-02 01:05:31 +03:00
|
|
|
AddNotificationGroupInfoMaxRemovedMessageId,
|
2020-08-10 18:37:03 +03:00
|
|
|
SupportMinithumbnails, // 20
|
2019-06-08 12:26:35 +03:00
|
|
|
AddVideoCallsSupport,
|
2019-06-12 14:42:06 +03:00
|
|
|
AddPhotoSizeSource,
|
2019-08-26 20:08:51 +03:00
|
|
|
AddFolders,
|
2020-01-11 03:46:26 +03:00
|
|
|
SupportPolls2_0,
|
2020-07-27 17:52:21 +03:00
|
|
|
AddDiceEmoji, // 25
|
2020-05-29 11:51:51 +03:00
|
|
|
AddAnimationStickers,
|
2020-07-08 22:59:31 +03:00
|
|
|
AddDialogPhotoHasAnimation,
|
2020-08-25 15:09:24 +03:00
|
|
|
AddPhotoProgressiveSizes,
|
2020-10-16 23:08:28 +03:00
|
|
|
AddLiveLocationHeading,
|
2020-10-29 22:25:58 +03:00
|
|
|
AddLiveLocationProximityAlertDistance, // 30
|
2021-03-22 04:03:24 +03:00
|
|
|
SupportBannedChannels,
|
2021-04-16 17:43:51 +03:00
|
|
|
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,
|
2022-05-19 16:57:11 +03:00
|
|
|
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,
|
2023-10-16 16:47:22 +03:00
|
|
|
AddMessageTextFlags,
|
2023-10-19 16:16:44 +03:00
|
|
|
AddPageBlockChatLinkFlags, // 50
|
2023-10-25 02:07:37 +03:00
|
|
|
SupportRepliesInOtherChats,
|
2018-12-31 22:04:05 +03:00
|
|
|
Next
|
|
|
|
};
|
|
|
|
|
|
|
|
enum class DbVersion : int32 {
|
2023-07-18 18:20:43 +03:00
|
|
|
CreateDialogDb = 3,
|
|
|
|
AddMessageDbMediaIndex,
|
|
|
|
AddMessageDb30MediaIndex,
|
|
|
|
AddMessageDbFts,
|
|
|
|
AddMessagesCallIndex,
|
2018-12-31 22:04:05 +03:00
|
|
|
FixFileRemoteLocationKeyBug,
|
2018-11-28 20:18:50 +03:00
|
|
|
AddNotificationsSupport,
|
2019-08-26 20:08:51 +03:00
|
|
|
AddFolders,
|
2019-12-02 03:33:35 +03:00
|
|
|
AddScheduledMessages,
|
2020-05-03 01:10:54 +03:00
|
|
|
StorePinnedDialogsInBinlog,
|
2020-09-28 15:13:25 +03:00
|
|
|
AddMessageThreadSupport,
|
2022-11-10 19:46:17 +03:00
|
|
|
AddMessageThreadDatabase,
|
2018-12-31 22:04:05 +03:00
|
|
|
Next
|
|
|
|
};
|
|
|
|
|
2018-10-08 16:29:44 +03:00
|
|
|
inline constexpr int32 current_db_version() {
|
2018-12-31 22:04:05 +03:00
|
|
|
return static_cast<int32>(DbVersion::Next) - 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace td
|