This commit is contained in:
bvn13 2026-06-29 14:13:11 +03:00
parent e725f33ed3
commit 691fa16c19

View File

@ -294,7 +294,7 @@ class Bot():
return True
elif filter_type == 'regexp':
logger.info("msg_id={0}: Filter type is 'regexp'".format(message.id))
if not re.match(filter_value, text):
if not re.search(filter_value, text):
logger.info("msg_id={0}: Text '{1}' not found".format(message.id, filter_value))
if not message.reply_to == None:
logger.info("msg_id={0}: Reply is present".format(message.id))