diff --git a/telebot/__init__.py b/telebot/__init__.py index d3cc2e500..de6d76a82 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -2532,7 +2532,7 @@ def add_middleware_handler(self, handler, update_types=None): else: self.default_middleware_handlers.append(handler) - def message_handler(self, commands=None, regexp=None, func=None, content_types=None, chat_types=None, state=None, **kwargs): + def message_handler(self, commands=None, regexp=None, func=None, content_types=None, chat_types=None, **kwargs): """ Message handler decorator. This decorator can be used to decorate functions that must handle certain types of messages.