expense-bot/handlers/users/help.py

20 lines
563 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.",
2022-04-03 12:49:14 +02:00
"/settings - Configure bot.",
"/test - Test command."
2022-04-01 22:23:02 +02:00
)
2022-04-01 21:02:03 +02:00
await message.answer("\n".join(text))