added default commands functionality
This commit is contained in:
10
utils/set_bot_commands.py
Normal file
10
utils/set_bot_commands.py
Normal 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", "Вывести справку"),
|
||||
]
|
||||
)
|
||||
Reference in New Issue
Block a user