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:
parent
2d0c54a7f2
commit
2ca5c0d6f3
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user