diff --git a/td/telegram/MessagesManager.h b/td/telegram/MessagesManager.h index f2c5d021b..3c71fb4c9 100644 --- a/td/telegram/MessagesManager.h +++ b/td/telegram/MessagesManager.h @@ -1644,8 +1644,8 @@ class MessagesManager final : public Actor { static constexpr int32 MAX_SEARCH_MESSAGES = 100; // server side limit static constexpr int32 MIN_SEARCH_PUBLIC_DIALOG_PREFIX_LEN = 4; // server side limit static constexpr int32 MIN_CHANNEL_DIFFERENCE = 1; + static constexpr int32 MAX_CHANNEL_DIFFERENCE = 1000; // server side limit static constexpr int32 MAX_BOT_CHANNEL_DIFFERENCE = 1000000; // server side limit - static constexpr int32 MAX_CHANNEL_DIFFERENCE = MAX_BOT_CHANNEL_DIFFERENCE; static constexpr int32 MAX_RECENTLY_FOUND_DIALOGS = 30; // some reasonable value static constexpr size_t MAX_TITLE_LENGTH = 128; // server side limit for chat title static constexpr size_t MAX_DESCRIPTION_LENGTH = 255; // server side limit for chat description