diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 0495fe56..ca737f2f 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -192,6 +192,7 @@ class Client: def on_message(self, group: int = 0): def decorator(f): self.add_handler(pyrogram.MessageHandler(f), group) + return f return decorator