mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
add middleware description
This commit is contained in:
parent
d247622df6
commit
b021e9df5c
1 changed files with 5 additions and 0 deletions
|
|
@ -22,6 +22,11 @@ class RequestLogging(BaseRequestMiddleware):
|
|||
def __init__(
|
||||
self, ignore_methods: Optional[List[Type[TelegramMethod[TelegramObject]]]] = None
|
||||
):
|
||||
"""
|
||||
Middleware for logging outgoing requests
|
||||
|
||||
:param ignore_methods: methods to ignore in logging middleware
|
||||
"""
|
||||
self.ignore_methods = ignore_methods if ignore_methods else []
|
||||
|
||||
async def __call__(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue