From a87c13c5e0d053c80ca35339e87a5e4b5cbc16b3 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 3 May 2023 13:02:21 +0800 Subject: [PATCH] Update client_ad.py --- plugins/tgclient/startup/extend/client_ad.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/tgclient/startup/extend/client_ad.py b/plugins/tgclient/startup/extend/client_ad.py index 5e4e84083..5975e8302 100644 --- a/plugins/tgclient/startup/extend/client_ad.py +++ b/plugins/tgclient/startup/extend/client_ad.py @@ -77,9 +77,9 @@ async def run(client): info = await client.get_dialogs() for chat in info: - await writeLog('name:{0} id:{1} is_user:{2} is_channel:{3} is_group:{4}'.format( - chat.name, chat.id, chat.is_user, chat.is_channel, chat.is_group)) if chat.is_group and not chat.id in filter_g_id: + await writeLog('name:{0} id:{1} is_user:{2} is_channel:{3} is_group:{4}'.format( + chat.name, chat.id, chat.is_user, chat.is_channel, chat.is_group)) try: await send_msg(client, chat.id, 'ad_' + str(chat.id)) except Exception as e: