From cd33b0b3910e6998aa610e1324581c2d983b659b Mon Sep 17 00:00:00 2001 From: berkio_admin_gitea Date: Wed, 8 Jul 2026 07:51:20 +0000 Subject: [PATCH] =?UTF-8?q?=D0=A1=D1=81=D1=8B=D0=BB=D0=BA=D0=B0=20=D0=BD?= =?UTF-8?q?=D0=B0=20=D0=B1=D0=BE=D1=82=D0=B0:=20=D0=B2=D0=B5=D1=80=D0=BD?= =?UTF-8?q?=D1=8B=D0=B9=20username=20(@pdf2scan=5Fpybot)=20+=20=D0=BE?= =?UTF-8?q?=D1=82=D0=BA=D1=80=D1=8B=D1=82=D0=B8=D0=B5=20=D0=BF=D1=80=D0=B8?= =?UTF-8?q?=D0=BB=D0=BE=D0=B6=D0=B5=D0=BD=D0=B8=D1=8F=20=D1=87=D0=B5=D1=80?= =?UTF-8?q?=D0=B5=D0=B7=20tg://?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - футер сайта вёл на несуществующий @pdf2scan_bot (t.me не резолвил) → @pdf2scan_pybot - клик по ссылке открывает приложение (tg://resolve) с откатом на веб t.me - логин на /developers тоже открывает приложение (d.url = tg://), а не браузер Co-Authored-By: Claude Opus 4.8 --- app/main.py | 3 ++- app/static/index.html | 25 ++++++++++++++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/app/main.py b/app/main.py index 40290b9..0e51d2d 100644 --- a/app/main.py +++ b/app/main.py @@ -2854,7 +2854,8 @@ _API_DOCS_HTML = """ var r = await fetch('/api/auth/token', {method:'POST'}); var d = await r.json(); var token = d.token; - window.open('https://t.me/' + BOT + '?start=webauth_' + token, '_blank'); + // d.url = tg://resolve?... — открывает приложение напрямую; https-ссылка как запасной вариант + window.open(d.url || ('https://t.me/' + BOT + '?start=webauth_' + token), '_blank'); setStatus('Откройте Telegram-бота и нажмите Start — ключ появится здесь автоматически...'); var tries = 0; pollTimer = setInterval(async function(){ diff --git a/app/static/index.html b/app/static/index.html index 58aa64f..e775538 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -1237,7 +1237,7 @@