diff --git a/misskaty/plugins/filters.py b/misskaty/plugins/filters.py index a80593cc..112a01d6 100644 --- a/misskaty/plugins/filters.py +++ b/misskaty/plugins/filters.py @@ -115,7 +115,7 @@ async def save_filters(_, message): if replied_message.voice: _type = "voice" file_id = replied_message.voice.file_id - if replied_message.reply_markup and "~" not in data: + if replied_message.reply_markup and not re.findall(r"\[.+\,.+\]", data): if urls := extract_urls(replied_message.reply_markup): response = "\n".join( [f"{name}=[{text}, {url}]" for name, text, url in urls]