expense-bot/utils/set_bot_commands.py

11 lines
265 B
Python
Raw Normal View History

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