feat(solaris): moving to service system to support multi-chat

This commit is contained in:
h
2025-07-05 01:13:12 +03:00
parent fd84210a65
commit 41927a1e07
16 changed files with 143 additions and 74 deletions

View File

@@ -1,9 +1,12 @@
from aiogram import Router, types
from aiogram.filters import CommandStart
from dishka.integrations.aiogram import FromDishka
from bot.modules.solaris.services.respond import RespondService
router = Router()
@router.message(CommandStart())
async def on_start(message: types.Message):
await message.reply("hewo everynyan")
async def on_start(message: types.Message, respond_service: FromDishka[RespondService]):
await message.reply(str(respond_service.chat_id))