mirror of
https://github.com/Xtao-Labs/sticker-captcha-bot.git
synced 2024-11-22 07:07:51 +00:00
fix: admin change notice
This commit is contained in:
parent
ba68b86dbe
commit
3a78dbbca1
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user