mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-09 09:22:03 +00:00
Fix 'TypeError: register_channel_post_handler() missing 1 required positional argument: 'callback''
This commit is contained in:
parent
bdbaf04b1b
commit
b3661aea27
1 changed files with 1 additions and 1 deletions
|
|
@ -456,7 +456,7 @@ class Dispatcher:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def decorator(callback):
|
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)
|
func=func, state=state, custom_filters=custom_filters, **kwargs)
|
||||||
return callback
|
return callback
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue