From 43c8046e4cc6b8e2948f0446296e3aa15d9c91dc Mon Sep 17 00:00:00 2001 From: John Preston Date: Sat, 20 May 2017 18:32:24 +0300 Subject: [PATCH] Don't handle telesco.pe links like t.me links. It is better to open web version of telesco.pe/username instead of a channel, because it shows only the round videos. You can share a t.me link to your channel if you wish to share the full channel. It is not bad to open web version of telesco.pe/username/post instead of a specific post in a channel, because the video message is shown in the web page preview and can be viewed without following the link. --- Telegram/SourceFiles/core/click_handler_types.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/core/click_handler_types.cpp b/Telegram/SourceFiles/core/click_handler_types.cpp index cc00063147..c614df9279 100644 --- a/Telegram/SourceFiles/core/click_handler_types.cpp +++ b/Telegram/SourceFiles/core/click_handler_types.cpp @@ -40,7 +40,7 @@ QString tryConvertUrlToLocal(QString url) { using namespace qthelp; auto matchOptions = RegExOption::CaseInsensitive; - auto telegramMeMatch = regex_match(qsl("^https?://(www\\.)?(telegram\\.(me|dog)|t\\.me|telesco\\.pe)/(.+)$"), url, matchOptions); + auto telegramMeMatch = regex_match(qsl("^https?://(www\\.)?(telegram\\.(me|dog)|t\\.me)/(.+)$"), url, matchOptions); if (telegramMeMatch) { auto query = telegramMeMatch->capturedRef(4); if (auto joinChatMatch = regex_match(qsl("^joinchat/([a-zA-Z0-9\\.\\_\\-]+)(\\?|$)"), query, matchOptions)) {