- booking.py: добавлен await перед get_busy_times (ошибка TypeError: coroutine is not iterable) - menu.py: возвращены emoji вместо текстовых меток - time_slots.py: возвращены emoji ❌/✅ вместо [X]/[V] - Проблема была в том, что booking_service использует async def, а вызов в booking.py был без await
21 lines
799 B
Python
21 lines
799 B
Python
from aiogram.types import ReplyKeyboardMarkup, KeyboardButton
|
|
|
|
menu = ReplyKeyboardMarkup(
|
|
keyboard=[
|
|
[KeyboardButton(text="/start")],
|
|
[KeyboardButton(text="\U0001f4cb \u0423\u0441\u043b\u0443\u0433\u0438")],
|
|
[KeyboardButton(text="\U0001f4c5 \u0417\u0430\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f")],
|
|
[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="\u2139\ufe0f \u041e \u043d\u0430\u0441")],
|
|
],
|
|
resize_keyboard=True
|
|
)
|
|
|
|
cancel_menu = ReplyKeyboardMarkup(
|
|
keyboard=[
|
|
[KeyboardButton(text="\u274c \u041e\u0442\u043c\u0435\u043d\u0430")]
|
|
],
|
|
resize_keyboard=True
|
|
)
|