fix: admin change notice

This commit is contained in:
xtaodada 2023-10-31 13:17:44 +08:00
parent ba68b86dbe
commit 3a78dbbca1
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -41,7 +41,7 @@ async def invite(client: Client, chat_member_updated: ChatMemberUpdated):
if ( if (
old_user old_user
and old_user.id == user.id and old_user.id == user.id
and old_user.status and old_member.status
in { in {
ChatMemberStatus.ADMINISTRATOR, ChatMemberStatus.ADMINISTRATOR,
ChatMemberStatus.OWNER, ChatMemberStatus.OWNER,