diff --git a/Telegram/Resources/uwp/AppX/AppxManifest.xml b/Telegram/Resources/uwp/AppX/AppxManifest.xml
index df4e25edc..579eb99a5 100644
--- a/Telegram/Resources/uwp/AppX/AppxManifest.xml
+++ b/Telegram/Resources/uwp/AppX/AppxManifest.xml
@@ -10,7 +10,7 @@
+ Version="5.9.1.0" />
Telegram Desktop
Telegram Messenger LLP
diff --git a/Telegram/Resources/winrc/Telegram.rc b/Telegram/Resources/winrc/Telegram.rc
index c9e9303f9..bc5248a10 100644
--- a/Telegram/Resources/winrc/Telegram.rc
+++ b/Telegram/Resources/winrc/Telegram.rc
@@ -44,8 +44,8 @@ IDI_ICON1 ICON "..\\art\\icon256.ico"
//
VS_VERSION_INFO VERSIONINFO
- FILEVERSION 5,9,0,0
- PRODUCTVERSION 5,9,0,0
+ FILEVERSION 5,9,1,0
+ PRODUCTVERSION 5,9,1,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
@@ -62,10 +62,10 @@ BEGIN
BEGIN
VALUE "CompanyName", "Telegram FZ-LLC"
VALUE "FileDescription", "Telegram Desktop"
- VALUE "FileVersion", "5.9.0.0"
+ VALUE "FileVersion", "5.9.1.0"
VALUE "LegalCopyright", "Copyright (C) 2014-2024"
VALUE "ProductName", "Telegram Desktop"
- VALUE "ProductVersion", "5.9.0.0"
+ VALUE "ProductVersion", "5.9.1.0"
END
END
BLOCK "VarFileInfo"
diff --git a/Telegram/Resources/winrc/Updater.rc b/Telegram/Resources/winrc/Updater.rc
index b7c104d4f..d6d1e6e70 100644
--- a/Telegram/Resources/winrc/Updater.rc
+++ b/Telegram/Resources/winrc/Updater.rc
@@ -35,8 +35,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
//
VS_VERSION_INFO VERSIONINFO
- FILEVERSION 5,9,0,0
- PRODUCTVERSION 5,9,0,0
+ FILEVERSION 5,9,1,0
+ PRODUCTVERSION 5,9,1,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
@@ -53,10 +53,10 @@ BEGIN
BEGIN
VALUE "CompanyName", "Telegram FZ-LLC"
VALUE "FileDescription", "Telegram Desktop Updater"
- VALUE "FileVersion", "5.9.0.0"
+ VALUE "FileVersion", "5.9.1.0"
VALUE "LegalCopyright", "Copyright (C) 2014-2024"
VALUE "ProductName", "Telegram Desktop"
- VALUE "ProductVersion", "5.9.0.0"
+ VALUE "ProductVersion", "5.9.1.0"
END
END
BLOCK "VarFileInfo"
diff --git a/Telegram/SourceFiles/core/version.h b/Telegram/SourceFiles/core/version.h
index 1fbef6abf..f7ffe12c6 100644
--- a/Telegram/SourceFiles/core/version.h
+++ b/Telegram/SourceFiles/core/version.h
@@ -22,7 +22,7 @@ constexpr auto AppId = "{53F49750-6209-4FBF-9CA8-7A333C87D1ED}"_cs;
constexpr auto AppNameOld = "Telegram Win (Unofficial)"_cs;
constexpr auto AppName = "Telegram Desktop"_cs;
constexpr auto AppFile = "Telegram"_cs;
-constexpr auto AppVersion = 5009000;
-constexpr auto AppVersionStr = "5.9";
-constexpr auto AppBetaVersion = false;
+constexpr auto AppVersion = 5009001;
+constexpr auto AppVersionStr = "5.9.1";
+constexpr auto AppBetaVersion = true;
constexpr auto AppAlphaVersion = TDESKTOP_ALPHA_VERSION;
diff --git a/Telegram/build/version b/Telegram/build/version
index 2fe47d353..77e628360 100644
--- a/Telegram/build/version
+++ b/Telegram/build/version
@@ -1,7 +1,7 @@
-AppVersion 5009000
+AppVersion 5009001
AppVersionStrMajor 5.9
-AppVersionStrSmall 5.9
-AppVersionStr 5.9.0
-BetaChannel 0
+AppVersionStrSmall 5.9.1
+AppVersionStr 5.9.1
+BetaChannel 1
AlphaVersion 0
-AppVersionOriginal 5.9
+AppVersionOriginal 5.9.1.beta
diff --git a/Telegram/lib_base b/Telegram/lib_base
index 2b622fd0b..81056e33a 160000
--- a/Telegram/lib_base
+++ b/Telegram/lib_base
@@ -1 +1 @@
-Subproject commit 2b622fd0b223ed6266a32dc07382975769cc031c
+Subproject commit 81056e33acd7a44ba2a4537101753b728907c1cd
diff --git a/Telegram/lib_ui b/Telegram/lib_ui
index 51e35946f..68864f644 160000
--- a/Telegram/lib_ui
+++ b/Telegram/lib_ui
@@ -1 +1 @@
-Subproject commit 51e35946fecaa7accb3506f1dc8b38941412377c
+Subproject commit 68864f644d7f3c01d3d6923b51ba0370466e0d84
diff --git a/changelog.txt b/changelog.txt
index 793917160..9afdf62b1 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -1,3 +1,13 @@
+5.9.1 beta (18.12.24)
+
+- Add global media overview tabs in chats search.
+- Add main menu "My Profile" with my stories and gifts access.
+- Highlight some of search query on result message open.
+- Fix highlighting quotes from bottom parts of long messages.
+- Allow forward and reply bars together.
+- Make gift price categories scrollable.
+- Auto-send deep-link /start in existing bot chats.
+
5.9 (04.12.24)
- Affiliate programs for bots.