From f5b788983bb07cb8ebbf32f9a25430ed2828a9ff Mon Sep 17 00:00:00 2001 From: HYBRID <48980248+hybridvamp@users.noreply.github.com> Date: Thu, 20 Feb 2025 18:40:28 +0530 Subject: [PATCH] disable logging for the TAG_LOG chat (#464) --- plugins/_userlogs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/_userlogs.py b/plugins/_userlogs.py index 0696ce5..32a8782 100644 --- a/plugins/_userlogs.py +++ b/plugins/_userlogs.py @@ -52,6 +52,8 @@ async def all_messages_catcher(e): if not udB.get_key("TAG_LOG"): return NEEDTOLOG = udB.get_key("TAG_LOG") + if e.chat_id == NEEDTOLOG: + return buttons = await parse_buttons(e) try: sent = await asst.send_message(NEEDTOLOG, e.message, buttons=buttons)