From 468d0bd0283e0c14b36587ba20b46cc9b9a4b700 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=D0=91=D0=BE=D0=B1?= =?UTF-8?q?=D1=8B=D1=80=D0=B5=D0=B2?= Date: Wed, 20 May 2026 05:50:14 +0300 Subject: [PATCH] fix: use regular URL button for Telegram (HTTP not supported for WebApp) Co-Authored-By: Claude Opus 4.6 --- server/services/telegram_bot.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/services/telegram_bot.py b/server/services/telegram_bot.py index c68c35d..bbae4ed 100644 --- a/server/services/telegram_bot.py +++ b/server/services/telegram_bot.py @@ -41,10 +41,8 @@ async def start_command(update: Update, context: ContextTypes.DEFAULT_TYPE): [InlineKeyboardButton("⚙️ Управление", callback_data="manage")], ] - # Add Web App button if available - webapp_url = f"http://{_get_host()}:8000/telegram-app" keyboard.append([ - InlineKeyboardButton("📱 Открыть панель", web_app=WebAppInfo(url=webapp_url)) + InlineKeyboardButton("🌐 Открыть панель", url=f"http://{_get_host()}:8000") ]) reply_markup = InlineKeyboardMarkup(keyboard)