16 lines
569 B
Python
16 lines
569 B
Python
from aiogram import Bot
|
|
from aiogram.types import BotCommand, BotCommandScopeDefault
|
|
|
|
from app import views
|
|
|
|
|
|
async def set_commands(bot: Bot):
|
|
commands = [
|
|
BotCommand(command="start", description=views.menu.get("start")),
|
|
BotCommand(command="command", description=views.menu.get("command")),
|
|
BotCommand(command="multiply_commands", description=views.menu.get("multiply_commands")),
|
|
BotCommand(command="docker_list", description=views.menu.get("docker_list"))
|
|
]
|
|
|
|
await bot.set_my_commands(commands, BotCommandScopeDefault())
|