help.py 368 B

123456789101112
  1. from aiogram import types
  2. from aiogram.dispatcher.filters import Command
  3. from loader import dp
  4. @dp.message_handler(Command('help'))
  5. async def bot_help(message: types.Message):
  6. text = ("Список команд: ",
  7. "/start - Начать диалог",
  8. "/help - Получить справку")
  9. await message.answer("\n".join(text))