mirror of
https://github.com/TeamPGM/PagerMaid_Plugins_Pyro.git
synced 2024-11-16 08:59:00 +00:00
clean_member fix a bug
This commit is contained in:
parent
01af45ae73
commit
7c2832bcca
@ -17,10 +17,10 @@ async def check_self_and_from(message: Message):
|
||||
data = await bot.get_chat_member(cid, (await bot.get_me()).id)
|
||||
if data.status not in [ChatMemberStatus.ADMINISTRATOR, ChatMemberStatus.OWNER]:
|
||||
return False
|
||||
if message.outgoing:
|
||||
return True
|
||||
if not message.from_user:
|
||||
return False
|
||||
if message.outgoing:
|
||||
return True
|
||||
data = await bot.get_chat_member(cid, message.from_user.id)
|
||||
return data.status in [ChatMemberStatus.ADMINISTRATOR, ChatMemberStatus.OWNER]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user