added default commands functionality

This commit is contained in:
latand
2021-05-03 20:09:09 +03:00
parent ea8e2bf764
commit b026ab8aec
2 changed files with 15 additions and 0 deletions

10
utils/set_bot_commands.py Normal file
View File

@@ -0,0 +1,10 @@
from aiogram import types
async def set_default_commands(dp):
await dp.bot.set_my_commands(
[
types.BotCommand("start", "Запустить бота"),
types.BotCommand("help", "Вывести справку"),
]
)