Skip to content

Commit 2ca5c0d

Browse files
committed
Hotfix lambda bug.
1 parent 2d0c54a commit 2ca5c0d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎telebot/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ def _test_filter(filter, filter_value, message):
434434
return message.content_type == 'text' and re.search(filter_value, message.text)
435435
if filter == 'commands':
436436
return message.content_type == 'text' and util.extract_command(message.text) in filter_value
437-
if filter == 'func':
437+
if filter == 'lambda':
438438
return filter_value(message)
439439
return False
440440

0 commit comments

Comments
 (0)