Files
DutyLog/src/dutylog/infrastructure/utils/bot_commands.py
T
2026-03-03 22:27:11 +03:00

11 lines
308 B
Python

from aiogram import Bot
from aiogram.types import BotCommand, BotCommandScopeDefault
async def set_bot_commands(bot: Bot):
commands = [
BotCommand(command="start", description="🏠 Начало работы"),
]
await bot.set_my_commands(commands, scope=BotCommandScopeDefault())