detect Anonymous Admin

if you're on Anonymous Admin mode, you need to revert back into user account.
This commit is contained in:
levina 2021-11-05 15:35:16 +07:00 committed by GitHub
parent f889e0b313
commit 4be0440ecb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,6 +62,8 @@ async def play(c: Client, m: Message):
] ]
] ]
) )
if m.sender_chat:
return await m.reply_text("you're an __Anonymous Admin__ !\n\n» revert back to user account from admin rights.")
try: try:
aing = await c.get_me() aing = await c.get_me()
except Exception as e: except Exception as e:
@ -267,6 +269,8 @@ async def stream(c: Client, m: Message):
] ]
] ]
) )
if m.sender_chat:
return await m.reply_text("you're an __Anonymous Admin__ !\n\n» revert back to user account from admin rights.")
try: try:
aing = await c.get_me() aing = await c.get_me()
except Exception as e: except Exception as e: