detect Anonymous Admin

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

View File

@ -68,6 +68,8 @@ async def vplay(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:
aing = await c.get_me()
except Exception as e:
@ -297,6 +299,8 @@ async def vstream(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:
aing = await c.get_me()
except Exception as e: