From 43dd0fd92c433498d780ca4e8798d606f5f70dbf Mon Sep 17 00:00:00 2001 From: Fringg Date: Wed, 29 Apr 2026 07:45:28 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20referral=20links=20now=20clickable=20?= =?UTF-8?q?=E2=80=94=20remove=20=20wrapping?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The invite message wrapped the entire text including the referral URL in
...
. The tag made the URL non-clickable — Telegram renders it as monospace copyable text. Recipients couldn't tap the link to open it. - Invite message: removed from blockquote, Telegram now auto-links the URL - Stats panel: removed from bot/cabinet referral links, URLs are now clickable --- app/handlers/referral.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/handlers/referral.py b/app/handlers/referral.py index ee91eb32..c7e2374e 100644 --- a/app/handlers/referral.py +++ b/app/handlers/referral.py @@ -120,8 +120,7 @@ async def show_referral_info(callback: types.CallbackQuery, db_user: User, db: A # Show bot link referral_text += ( - texts.t('REFERRAL_BOT_LINK_TITLE', '🤖 Ссылка на бота:') - + f'\n{html_escape(bot_referral_link)}\n' + texts.t('REFERRAL_BOT_LINK_TITLE', '🤖 Ссылка на бота:') + f'\n{html_escape(bot_referral_link)}\n' ) # Show cabinet link if configured @@ -129,7 +128,7 @@ async def show_referral_info(callback: types.CallbackQuery, db_user: User, db: A referral_text += ( '\n' + texts.t('REFERRAL_CABINET_LINK_TITLE', '🌐 Ссылка на кабинет:') - + f'\n{html_escape(cabinet_referral_link)}\n' + + f'\n{html_escape(cabinet_referral_link)}\n' ) referral_text += ( @@ -551,7 +550,7 @@ async def create_invite_message(callback: types.CallbackQuery, db_user: User): 'Нажмите на текст ниже, чтобы скопировать:', ) + '\n\n' - f'
{html_escape(invite_text)}
' + f'
{html_escape(invite_text)}
' ), keyboard, )