From 20bedcb432eb531ac84d2c675581519b2239a7da Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Fri, 5 Nov 2021 15:36:39 +0700 Subject: [PATCH] detect `Anonymous Admin` if you're on Anonymous Admin mode, you need to revert back into the user account. --- program/video.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/program/video.py b/program/video.py index 0f773c9..9476fd9 100644 --- a/program/video.py +++ b/program/video.py @@ -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: