Skip to content

Commit

Permalink
Update filters.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yasirarism committed Aug 10, 2024
1 parent 53ee89e commit 673c709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misskaty/plugins/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 673c709

Please sign in to comment.