mirror of
https://github.com/MrSedan/neuro-reply-bot-reworked.git
synced 2026-01-14 21:49:42 +03:00
Some refactoring and started second bot
This commit is contained in:
16
handlers/handler.py
Normal file
16
handlers/handler.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from typing import Any
|
||||
|
||||
from aiogram import Bot, Router
|
||||
|
||||
|
||||
class Handler:
|
||||
bot: Bot
|
||||
router: Router
|
||||
|
||||
def __init__(self, bot: Bot) -> None:
|
||||
assert isinstance(bot, Bot)
|
||||
self.bot = bot
|
||||
self.router = Router()
|
||||
|
||||
def __call__(self) -> Router:
|
||||
return self.router
|
||||
Reference in New Issue
Block a user