Обработчик команды /help

This commit is contained in:
Whyverum
2024-12-23 22:03:04 +07:00
parent 154ae6af27
commit 97ffc61aa2
2 changed files with 7 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
# BotCode/keyboards/help_kb.py
# BotCode/keyboards/reply_kb/help_kb.py
# Создание клавиатуры для сообщения: "Помогите!"
from aiogram import Router, F
@@ -22,15 +22,6 @@ def get_help_kb() -> ReplyKeyboardMarkup:
]
buttons_row = [KeyboardButton(text=num) for num in numbers]
# Один из способов создания клавиатур
#
# markup = ReplyKeyboardMarkup(
# keyboard=[buttons_row],
# resize_keyboard=True,
# )
# return markup
builder = ReplyKeyboardBuilder()
for num in numbers:
builder.button(text=num)