Add telegram bot
This commit is contained in:
21
bot/keyboards/main_menu.py
Normal file
21
bot/keyboards/main_menu.py
Normal file
@@ -0,0 +1,21 @@
|
||||
from aiogram.types import ReplyKeyboardMarkup, KeyboardButton
|
||||
|
||||
|
||||
def get_main_menu() -> ReplyKeyboardMarkup:
|
||||
"""Create main menu keyboard."""
|
||||
keyboard = [
|
||||
[
|
||||
KeyboardButton(text="📊 Мои марафоны"),
|
||||
KeyboardButton(text="📈 Статистика")
|
||||
],
|
||||
[
|
||||
KeyboardButton(text="⚙️ Настройки"),
|
||||
KeyboardButton(text="❓ Помощь")
|
||||
]
|
||||
]
|
||||
|
||||
return ReplyKeyboardMarkup(
|
||||
keyboard=keyboard,
|
||||
resize_keyboard=True,
|
||||
input_field_placeholder="Выбери действие..."
|
||||
)
|
||||
Reference in New Issue
Block a user