fix a bug

This commit is contained in:
xtaodada 2022-07-05 17:33:34 +08:00
parent c9a5ea0266
commit 0b9dfffa44
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -24,8 +24,6 @@ async def chat_members_handle(client: Client, message: Message):
if message.new_chat_members: if message.new_chat_members:
for i in message.new_chat_members: for i in message.new_chat_members:
if i.is_self: if i.is_self:
with contextlib.suppress(Exception):
await log(chat, user, "NEW_GROUP")
return return
user = message.new_chat_members[0] if message.new_chat_members else message.from_user user = message.new_chat_members[0] if message.new_chat_members else message.from_user
if user.is_self or user.is_verified or user.is_bot or user.is_deleted or user.is_support: if user.is_self or user.is_verified or user.is_bot or user.is_deleted or user.is_support: