domovoy_bot/keyboards/reply.py
Admin 1825d26230 📌 snapshot before scheduled posts feature - v1.2 prep
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-04-05 15:13:37 +04:00

39 lines
1.1 KiB
Python

"""
Reply-клавиатуры (кнопки под строкой ввода)
"""
from aiogram.types import ReplyKeyboardMarkup, KeyboardButton
from aiogram.utils.keyboard import ReplyKeyboardBuilder
def get_reply_menu() -> ReplyKeyboardMarkup:
"""
Reply-меню для жильцов
Используется редко, в основном для важных действий
"""
builder = ReplyKeyboardBuilder()
builder.row(
KeyboardButton(text='📞 Телефоны'),
)
builder.row(
KeyboardButton(text='❓ Помощь'),
)
# Resize keyboard чтобы не занимал много места
return builder.as_markup(resize_keyboard=True, one_time_keyboard=False)
def get_admin_reply_menu() -> ReplyKeyboardMarkup:
"""Reply-меню для админа"""
builder = ReplyKeyboardBuilder()
builder.row(
KeyboardButton(text='/admin'),
KeyboardButton(text='/stats'),
)
builder.row(
KeyboardButton(text='/spies'),
KeyboardButton(text='/export'),
)
return builder.as_markup(resize_keyboard=True)