disable logging for the TAG_LOG chat (#464)

This commit is contained in:
HYBRID
2025-02-20 18:40:28 +05:30
committed by GitHub
parent d145554b47
commit f5b788983b

View File

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