From 82f93130cdbdfd9503043f750b201505522f4f1b Mon Sep 17 00:00:00 2001 From: Yasir Aris M Date: Sat, 10 Aug 2024 20:47:43 +0700 Subject: [PATCH] Debug dulu soalnya belum nemu case error nya dimana --- misskaty/plugins/filters.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/misskaty/plugins/filters.py b/misskaty/plugins/filters.py index 112a01d6d7..b17f8557f3 100644 --- a/misskaty/plugins/filters.py +++ b/misskaty/plugins/filters.py @@ -170,9 +170,12 @@ async def del_filter(_, m): filters.text & ~filters.private & ~filters.via_bot & ~filters.forwarded, group=103, ) -async def filters_re(_, message): - from_user = message.from_user if message.from_user else message.sender_chat - user_id = from_user.id +async def filters_re(self, message): + try: + from_user = message.from_user if message.from_user else message.sender_chat + user_id = from_user.id + except AttributeError: + self.log.info(message) chat_id = message.chat.id text = message.text.lower().strip() if not text or (