Второй стрим

This commit is contained in:
2024-03-11 01:56:43 +04:00
parent 2649b9136a
commit 62922cf613
11 changed files with 147 additions and 12 deletions

0
app/utils/__init__.py Normal file
View File

15
app/utils/commands.py Normal file
View 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
View File

@ -0,0 +1,5 @@
from aiogram.fsm.state import StatesGroup, State
class ExecuteCommandsSteps(StatesGroup):
EXECUTE = State()