Fix 'TypeError: register_channel_post_handler() missing 1 required positional argument: 'callback''

This commit is contained in:
Alex Root Junior 2017-10-27 20:29:00 +03:00
parent bdbaf04b1b
commit b3661aea27

View file

@ -456,7 +456,7 @@ class Dispatcher:
"""
def decorator(callback):
self.register_channel_post_handler(commands=commands, regexp=regexp, content_types=content_types,
self.register_channel_post_handler(callback, commands=commands, regexp=regexp, content_types=content_types,
func=func, state=state, custom_filters=custom_filters, **kwargs)
return callback