diff --git a/examples/middleware_and_antiflood.py b/examples/middleware_and_antiflood.py index 7986bf3f..f0238dec 100644 --- a/examples/middleware_and_antiflood.py +++ b/examples/middleware_and_antiflood.py @@ -46,7 +46,7 @@ class ThrottlingMiddleware(BaseMiddleware): self.prefix = key_prefix super(ThrottlingMiddleware, self).__init__() - async def on_process_message(self, message: types.Message): + async def on_process_message(self, message: types.Message, *args): """ This handler is called when dispatcher receives a message