From 2ca5c0d6f308b13e70278ec9430b070fb0dd07a6 Mon Sep 17 00:00:00 2001 From: eternnoir Date: Thu, 10 Sep 2015 21:27:37 +0800 Subject: [PATCH] Hotfix lambda bug. --- telebot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telebot/__init__.py b/telebot/__init__.py index 5a560c9..3474c09 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -434,7 +434,7 @@ class TeleBot: return message.content_type == 'text' and re.search(filter_value, message.text) if filter == 'commands': return message.content_type == 'text' and util.extract_command(message.text) in filter_value - if filter == 'func': + if filter == 'lambda': return filter_value(message) return False