mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Bug fix.
This commit is contained in:
@ -372,7 +372,7 @@ class TeleBot:
|
||||
return TeleBot.extract_command(message.text) in message_handler['commands']
|
||||
if 'regexp' in message_handler and message.content_type == 'text' and re.search(message_handler['regexp'],
|
||||
message.text):
|
||||
return False
|
||||
return True
|
||||
if 'lambda' in message_handler:
|
||||
return message_handler['lambda'](message)
|
||||
return False
|
||||
|
Reference in New Issue
Block a user