expense-bot/utils/set_bot_commands.py

11 lines
224 B
Python

from aiogram import types
async def set_default_commands(dp):
await dp.bot.set_my_commands(
[
types.BotCommand("start", "Start bot."),
types.BotCommand("help", "Help."),
]
)