Stage 01 - bootstrap v2 stable start
This commit is contained in:
21
app/src/telegram/handlers/system.py
Normal file
21
app/src/telegram/handlers/system.py
Normal file
@@ -0,0 +1,21 @@
|
||||
import platform
|
||||
|
||||
from aiogram import F, Router
|
||||
from aiogram.types import Message
|
||||
|
||||
from src.core.constants import APP_NAME, APP_VERSION
|
||||
from src.telegram.menus import SYSTEM_TEXT
|
||||
|
||||
|
||||
router = Router(name="system")
|
||||
|
||||
|
||||
@router.message(F.text.in_({"⚙️ Система", "⚙ Система"}))
|
||||
async def open_system(message: Message) -> None:
|
||||
runtime_info = (
|
||||
"\n\n<b>Runtime</b>\n"
|
||||
f"- app: {APP_NAME} {APP_VERSION}\n"
|
||||
f"- python: {platform.python_version()}\n"
|
||||
f"- os: {platform.system()} {platform.release()}"
|
||||
)
|
||||
await message.answer(SYSTEM_TEXT + runtime_info)
|
||||
Reference in New Issue
Block a user