expense-bot/utils/set_bot_commands.py

11 lines
265 B
Python

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