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:
@@ -434,7 +434,7 @@ class TeleBot:
|
|||||||
return message.content_type == 'text' and re.search(filter_value, message.text)
|
return message.content_type == 'text' and re.search(filter_value, message.text)
|
||||||
if filter == 'commands':
|
if filter == 'commands':
|
||||||
return message.content_type == 'text' and util.extract_command(message.text) in filter_value
|
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 filter_value(message)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user