♻️ Меню: убран /start, добавлен обработчик услуг
- menu.py: убрана кнопка /start из главного меню
- services.py: добавлен хендлер на кнопку "📋 Услуги"
- booking.py: добавлен лог при подтверждении бронирования
This commit is contained in:
@@ -190,6 +190,7 @@ async def confirm_booking_callback(
|
|||||||
state: FSMContext
|
state: FSMContext
|
||||||
):
|
):
|
||||||
data = await state.get_data()
|
data = await state.get_data()
|
||||||
|
logger.info("User {uid} confirmed booking: {data}", uid=callback.from_user.id, data=data)
|
||||||
|
|
||||||
editing_booking_id = data.get(
|
editing_booking_id = data.get(
|
||||||
"editing_booking_id"
|
"editing_booking_id"
|
||||||
|
|||||||
@@ -1,3 +1,23 @@
|
|||||||
from aiogram import Router
|
from aiogram import Router, F
|
||||||
|
from aiogram.types import Message
|
||||||
|
from aiogram.fsm.context import FSMContext
|
||||||
|
|
||||||
|
from app.keyboards.menu import menu
|
||||||
|
from app.keyboards.services import get_services_keyboard
|
||||||
|
from app.logger import logger
|
||||||
|
|
||||||
router = Router()
|
router = Router()
|
||||||
from app.logger import logger
|
|
||||||
|
|
||||||
|
@router.message(F.text == "\U0001f4cb \u0423\u0441\u043b\u0443\u0433\u0438")
|
||||||
|
async def show_services(message: Message, state: FSMContext):
|
||||||
|
await state.clear()
|
||||||
|
logger.info("User {uid} requested services list", uid=message.from_user.id)
|
||||||
|
await message.answer(
|
||||||
|
"\U0001f4cb \u041d\u0430\u0448\u0438 \u0443\u0441\u043b\u0443\u0433\u0438:\n\n"
|
||||||
|
"\U0001f4aa \u041c\u0430\u0441\u0441\u0430\u0436 - \u0440\u0430\u0441\u0441\u043b\u0430\u0431\u043b\u044f\u044e\u0449\u0438\u0439 \u0438 \u043b\u0435\u0447\u0435\u0431\u043d\u044b\u0439\n"
|
||||||
|
"\U0001f388 SPA - \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b\n"
|
||||||
|
"\U0001f484 \u041a\u043e\u0441\u043c\u0435\u0442\u043e\u043b\u043e\u0433\u0438\u044f - \u0443\u0445\u043e\u0434 \u0437\u0430 \u043b\u0438\u0446\u043e\u043c\n\n"
|
||||||
|
"\u0427\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u00ab\u0417\u0430\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f\u00bb",
|
||||||
|
reply_markup=get_services_keyboard()
|
||||||
|
)
|
||||||
|
|||||||
@@ -2,9 +2,9 @@ from aiogram.types import ReplyKeyboardMarkup, KeyboardButton
|
|||||||
|
|
||||||
menu = ReplyKeyboardMarkup(
|
menu = ReplyKeyboardMarkup(
|
||||||
keyboard=[
|
keyboard=[
|
||||||
[KeyboardButton(text="/start")],
|
|
||||||
[KeyboardButton(text="\U0001f4cb \u0423\u0441\u043b\u0443\u0433\u0438")],
|
[KeyboardButton(text="\U0001f4cb \u0423\u0441\u043b\u0443\u0433\u0438")],
|
||||||
[KeyboardButton(text="\U0001f4c5 \u0417\u0430\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f")],
|
[KeyboardButton(text="\U0001f4c5 \u0417\u0430\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f")],
|
||||||
|
[KeyboardButton(text="\U0001f464 \u041f\u0440\u043e\u0444\u0438\u043b\u044c")],
|
||||||
[KeyboardButton(text="\U0001f4c4 \u041c\u043e\u0438 \u0437\u0430\u043f\u0438\u0441\u0438")],
|
[KeyboardButton(text="\U0001f4c4 \u041c\u043e\u0438 \u0437\u0430\u043f\u0438\u0441\u0438")],
|
||||||
[KeyboardButton(text="\U0001f4de \u041a\u043e\u043d\u0442\u0430\u043a\u0442\u044b")],
|
[KeyboardButton(text="\U0001f4de \u041a\u043e\u043d\u0442\u0430\u043a\u0442\u044b")],
|
||||||
[KeyboardButton(text="\u2139\ufe0f \u041e \u043d\u0430\u0441")],
|
[KeyboardButton(text="\u2139\ufe0f \u041e \u043d\u0430\u0441")],
|
||||||
|
|||||||
Reference in New Issue
Block a user