| β¬ οΈ Back | π Docs Root |
The bot_menu feature is the central hub (Dashboard) of the Telegram Bot. It provides a persistent interface with buttons that allow users to navigate between different installed features and switch between User and Admin modes.
| Component | Description |
|---|---|
| π Handlers | Entry points and callback processing |
| π Logic | Business logic and orchestrator |
| π Contracts | Data access interfaces (MenuDiscoveryProvider) |
| π UI | Message rendering and keyboards |
| π Resources | Static texts and constants |
class BotMenuStates(StatesGroup):
main = State()
STATES = BotMenuStates
GARBAGE_COLLECT = True
/start).BotMenuUI creates a keyboard with the allowed buttons.Director to move to another feature.Other features appear in this menu by defining a MENU_CONFIG in their own feature_setting.py. The bot_menu itself does not need to be modified to add new buttons.