lily_website

🎨 Bot Menu UI (Rendering)

⬅️ 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.

πŸ—οΈ Class: BotMenuUI

Located in: src/telegram_bot/features/telegram/bot_menu/ui/ui.py

Methods

render_dashboard(buttons: dict[str, dict]) -> ViewResultDTO

Generates the main dashboard interface.

🧩 Components

Keyboard Builder

The UI uses aiogram.utils.keyboard.InlineKeyboardBuilder for flexible keyboard construction.

Callbacks

Navigation buttons use the DashboardCallback schema:

πŸ“ Design Principles