Fix filters

This commit is contained in:
Yasir Aris M 2023-11-23 11:07:15 +07:00 committed by GitHub
parent 693a052d11
commit 9f3474eedd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -161,7 +161,7 @@ async def del_filter(_, m):
)
async def filters_re(_, message):
text = message.text.lower().strip()
if not text:
if not text or (m.command and m.command[0].lower() in ["filter", "addfilter"]):
return
chat_id = message.chat.id
list_of_filters = await get_filters_names(chat_id)