From 3a78dbbca1b54209a79274f5205581e1884df673 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Tue, 31 Oct 2023 13:17:44 +0800 Subject: [PATCH] fix: admin change notice --- plugins/chat_member_update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,