Add "wraps" handler to telegram wrapper

This commit is contained in:
Matthias
2023-12-30 10:44:02 +01:00
parent 3a87522070
commit f6de7d952a

View File

@@ -78,6 +78,7 @@ def authorized_only(command_handler: Callable[..., Coroutine[Any, Any, None]]):
:return: decorated function
"""
@wraps(command_handler)
async def wrapper(self, *args, **kwargs):
""" Decorator logic """
update = kwargs.get('update') or args[0]