1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Hotfix lambda bug.

This commit is contained in:
eternnoir 2015-09-10 21:27:37 +08:00
parent 2d0c54a7f2
commit 2ca5c0d6f3

View File

@ -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