Update filters.py

This commit is contained in:
Yasir Aris M 2024-08-10 09:27:40 +07:00 committed by GitHub
parent 53ee89e7b5
commit 673c709ca2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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]