expense-bot/handlers/users/help.py

19 lines
526 B
Python
Raw Normal View History

2022-04-01 21:02:03 +02:00
from aiogram import types
from aiogram.dispatcher.filters.builtin import CommandHelp
from loader import dp
@dp.message_handler(CommandHelp())
async def bot_help(message: types.Message):
2022-04-01 22:23:02 +02:00
text = ("Available commands: ",
"/start - Launch bot.",
"/help - Commands list, little help.",
"/add - Add expense.",
"/edit - Edit expense.",
"/list - See my expenses.",
"/settings - Configure bot."
)
2022-04-01 21:02:03 +02:00
await message.answer("\n".join(text))