From 673c709ca2b07d8d9ac0124401a60c6d886eafe1 Mon Sep 17 00:00:00 2001 From: Yasir Aris M Date: Sat, 10 Aug 2024 09:27:40 +0700 Subject: [PATCH] Update filters.py --- misskaty/plugins/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]