From df7cfb3aa34a1595a8862e29eab314ca2634b993 Mon Sep 17 00:00:00 2001 From: Tharuk Renuja <90763454+TharukRenuja@users.noreply.github.com> Date: Mon, 1 Nov 2021 09:11:21 +0530 Subject: [PATCH 1/3] Update pm_filter.py --- plugins/pm_filter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/pm_filter.py b/plugins/pm_filter.py index 7030ce0..fd41875 100644 --- a/plugins/pm_filter.py +++ b/plugins/pm_filter.py @@ -20,7 +20,7 @@ BUTTONS = {} -@Client.on_message(filters.group & filters.text) +@Client.on_message(filters.group & filters.text & filters.private) async def give_filter(client,message): group_id = message.chat.id name = message.text From 6c8b7115fb7348c0980333d2e3302519c37e6714 Mon Sep 17 00:00:00 2001 From: Tharuk Renuja <90763454+TharukRenuja@users.noreply.github.com> Date: Mon, 1 Nov 2021 09:20:58 +0530 Subject: [PATCH 2/3] Update pm_filter.py --- plugins/pm_filter.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/pm_filter.py b/plugins/pm_filter.py index fd41875..81deb55 100644 --- a/plugins/pm_filter.py +++ b/plugins/pm_filter.py @@ -24,12 +24,13 @@ async def give_filter(client,message): group_id = message.chat.id name = message.text + user_id = message.chat.id - keywords = await get_filters(group_id) + keywords = await get_filters(group_id, user_id) for keyword in reversed(sorted(keywords, key=len)): pattern = r"( |^|[^\w])" + re.escape(keyword) + r"( |$|[^\w])" if re.search(pattern, name, flags=re.IGNORECASE): - reply_text, btn, alert, fileid = await find_filter(group_id, keyword) + reply_text, btn, alert, fileid = await find_filter(group_id, user_id, keyword) if reply_text: reply_text = reply_text.replace("\\n", "\n").replace("\\t", "\t") From 95b1de5839c264e8e9b0459c8b5c337132586a36 Mon Sep 17 00:00:00 2001 From: Tharuk Renuja <90763454+TharukRenuja@users.noreply.github.com> Date: Thu, 23 Dec 2021 11:23:17 +0530 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3eb11a9..97d4306 100644 --- a/README.md +++ b/README.md @@ -122,7 +122,7 @@ License -> https://github.com/TharukRenuja/NSTC-Movie-Finder/blob/main/LICENSE - [Mahesh](https://github.com/Mahesh0253) for Media Search Bot. - [TrojanzHex](https://github.com/TroJanzHEX) for Auto Filter Bot. - [Me](https://github.com/TharukRenuja) for NothingšŸ¤£. -- [EvaMaria](https://github.com/EvaMaria) for EvaMaria Bot. +- [EvaMariaTG](https://github.com/EvaMariaTG) for EvaMaria Bot. ## Thanks to - Thanks To Dan For His Awsome [Libary](https://github.com/pyrogram/pyrogram)