diff --git a/plugins/chat_member_update.py b/plugins/chat_member_update.py index 5e3ff49..7d68cb4 100644 --- a/plugins/chat_member_update.py +++ b/plugins/chat_member_update.py @@ -41,7 +41,7 @@ async def invite(client: Client, chat_member_updated: ChatMemberUpdated): if ( old_user and old_user.id == user.id - and old_user.status + and old_member.status in { ChatMemberStatus.ADMINISTRATOR, ChatMemberStatus.OWNER,