feat: update support keyboard with new support URL and replace return to menu button
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user