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: