1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00
This commit is contained in:
eternnoir
2015-07-22 14:02:16 +08:00
parent f7168770ab
commit ba1693dcf0
2 changed files with 23 additions and 1 deletions

View File

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