mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-09 17:33:44 +00:00
Deprecate middlewares.
This commit is contained in:
parent
fb6a9af9fa
commit
3c2a37542b
1 changed files with 2 additions and 0 deletions
|
|
@ -1,7 +1,9 @@
|
|||
from aiogram.utils.deprecated import deprecated
|
||||
from . import Handler
|
||||
from .handler import SkipHandler
|
||||
|
||||
|
||||
@deprecated
|
||||
class Middleware:
|
||||
def __init__(self, handler, filters=None):
|
||||
self.handler: Handler = handler
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue