From 76fd6eb9a88932e752b1ace1cb067cb907bb93af Mon Sep 17 00:00:00 2001 From: hexdev Date: Wed, 22 Apr 2026 18:35:30 +0700 Subject: [PATCH] feat: update support keyboard with new support URL and replace return to menu button --- handlers/support.py | 6 +++--- keyboards/client.py | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/handlers/support.py b/handlers/support.py index 4a4e1c2..ff6d42c 100644 --- a/handlers/support.py +++ b/handlers/support.py @@ -5,7 +5,7 @@ from aiogram.filters import Command from aiogram.fsm.context import FSMContext from aiogram.types import CallbackQuery, Message -from keyboards.client import return_to_menu +from keyboards.client import support_url_kb from texts import SUPPORT_INIT router = Router() @@ -16,7 +16,7 @@ logger = logging.getLogger(__name__) async def support_init(cb: CallbackQuery, state: FSMContext): await state.clear() - await cb.message.edit_text(text=SUPPORT_INIT, reply_markup=return_to_menu) + await cb.message.edit_text(text=SUPPORT_INIT, reply_markup=support_url_kb) @router.message(Command("support")) @@ -24,4 +24,4 @@ async def support_init_cmd(msg: Message, state: FSMContext): await state.clear() await msg.delete() - await msg.answer(text=SUPPORT_INIT, reply_markup=return_to_menu) + await msg.answer(text=SUPPORT_INIT, reply_markup=support_url_kb) diff --git a/keyboards/client.py b/keyboards/client.py index cd73874..ad87910 100644 --- a/keyboards/client.py +++ b/keyboards/client.py @@ -38,6 +38,13 @@ close_kb: InlineKeyboardMarkup = InlineKeyboardBuilder( [[InlineKeyboardButton(text="❌", callback_data="delete")]] ).as_markup() +support_url_kb: InlineKeyboardMarkup = InlineKeyboardBuilder( + [ + [InlineKeyboardButton(text="✍️ Перейти в поддержку", url="https://t.me/maleniasupportbot")], + [_return_to_menu_btn], + ] +).as_markup() + def _return_btn(data: str = "menu:main", text: str = "⬅️ Назад") -> InlineKeyboardButton: return InlineKeyboardButton(text=text, callback_data=data)