from aiogram import Bot from aiogram.types import BotCommand commands = {'/help': 'Помощь по работе с ботом', '/support': 'Получить контакты техподдержки', '/orders': 'Заказы', '/components': 'Товары', '/start': 'Запуск/перезапуск бота'} async def set_main_menu(bot: Bot): await bot.set_my_commands([ BotCommand(command=command, description=description) for command, description in commands.items()])