From 1b0a87261989c55acd6c9a6e863457a31c861459 Mon Sep 17 00:00:00 2001 From: Ihor Polyakov Date: Wed, 28 Sep 2016 18:41:36 +0700 Subject: [PATCH] return statement added to callback_query_handler in decorator --- telebot/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/telebot/__init__.py b/telebot/__init__.py index 1f4e8b1..f234c6a 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -748,6 +748,7 @@ class TeleBot: def decorator(handler): handler_dict = self._build_handler_dict(handler, func=func, **kwargs) self.add_callback_query_handler(handler_dict) + return handler return decorator