Files
telegram-bot-for-manipulate…/app/keyboards/menu_commands.py
ronis_0505 5662d8877a
Some checks failed
continuous-integration/drone Build is failing
MVP
2025-07-27 22:17:28 +03:00

11 lines
508 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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()])