Второй стрим
This commit is contained in:
15
app/utils/commands.py
Normal file
15
app/utils/commands.py
Normal file
@ -0,0 +1,15 @@
|
||||
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())
|
Reference in New Issue
Block a user