Merge pull request #79 from Olegt0rr/fix_antiflood_example

Added other args for on_process_message()
This commit is contained in:
Alex Root Junior 2018-11-07 17:41:35 +02:00 committed by GitHub
commit 61e0f3601d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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