From 691fa16c19191a3aaa0714ff0fc2f911ef73793d Mon Sep 17 00:00:00 2001 From: bvn13 Date: Mon, 29 Jun 2026 14:13:11 +0300 Subject: [PATCH] fix --- src/bot/bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bot/bot.py b/src/bot/bot.py index 0e103e4..e385d4b 100644 --- a/src/bot/bot.py +++ b/src/bot/bot.py @@ -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)) @@ -309,4 +309,4 @@ class Bot(): async def __identity(self) -> None: me = await self.__bot.get_me() - self.__me = me.id \ No newline at end of file + self.__me = me.id