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 return True
elif filter_type == 'regexp': elif filter_type == 'regexp':
logger.info("msg_id={0}: Filter type is 'regexp'".format(message.id)) 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)) logger.info("msg_id={0}: Text '{1}' not found".format(message.id, filter_value))
if not message.reply_to == None: if not message.reply_to == None:
logger.info("msg_id={0}: Reply is present".format(message.id)) logger.info("msg_id={0}: Reply is present".format(message.id))
@ -309,4 +309,4 @@ class Bot():
async def __identity(self) -> None: async def __identity(self) -> None:
me = await self.__bot.get_me() me = await self.__bot.get_me()
self.__me = me.id self.__me = me.id