Второй стрим
This commit is contained in:
0
app/utils/__init__.py
Normal file
0
app/utils/__init__.py
Normal file
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())
|
5
app/utils/statesform.py
Normal file
5
app/utils/statesform.py
Normal file
@ -0,0 +1,5 @@
|
||||
from aiogram.fsm.state import StatesGroup, State
|
||||
|
||||
|
||||
class ExecuteCommandsSteps(StatesGroup):
|
||||
EXECUTE = State()
|
Reference in New Issue
Block a user