| β¬ οΈ Back | π Docs Root |
The BotMenuUI is a pure rendering layer. It takes raw data (feature configurations) and transforms it into a ViewResultDTO containing the text and keyboard for the Telegram message.
Located in: src/telegram_bot/features/telegram/bot_menu/ui/ui.py
render_dashboard(buttons: dict[str, dict]) -> ViewResultDTOGenerates the main dashboard interface.
InlineKeyboardBuilder.callback_data, it uses it. Otherwise, it generates a DashboardCallback with a nav action.ViewResultDTO containing the DASHBOARD_TITLE and the generated inline keyboard.The UI uses aiogram.utils.keyboard.InlineKeyboardBuilder for flexible keyboard construction.
Navigation buttons use the DashboardCallback schema:
nav (navigation)booking, account).