From b3661aea2745f200b3b57a0090b936eebf744c98 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Fri, 27 Oct 2017 20:29:00 +0300 Subject: [PATCH] Fix 'TypeError: register_channel_post_handler() missing 1 required positional argument: 'callback'' --- aiogram/dispatcher/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/dispatcher/__init__.py b/aiogram/dispatcher/__init__.py index c9a4bec5..ff0812f9 100644 --- a/aiogram/dispatcher/__init__.py +++ b/aiogram/dispatcher/__init__.py @@ -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