set_bot_commands.py 265 B

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