channel-block-tg/handlers/users/help.py
Kostiantyn Kriuchkov 43b241d4e7 Separated loader with dp, bot and storage and added app,
which we'll be executing
2020-04-14 10:54:17 +03:00

17 lines
444 B
Python

from aiogram import types
from aiogram.dispatcher.filters.builtin import CommandStart
from loader import dp
from utils.misc import rate_limit
@rate_limit(5, 'help')
@dp.message_handler(CommandStart())
async def bot_help(message: types.Message):
text = [
'Список команд: ',
'/start - Начать диалог',
'/help - Получить справку'
]
await message.answer('\n'.join(text))