From 4be0440ecb86ae84fce17b1f62390798b8c18dd8 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Fri, 5 Nov 2021 15:35:16 +0700 Subject: [PATCH 1/2] detect `Anonymous Admin` if you're on Anonymous Admin mode, you need to revert back into user account. --- program/music.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/program/music.py b/program/music.py index 0596428..2ab9aeb 100644 --- a/program/music.py +++ b/program/music.py @@ -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: aing = await c.get_me() 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: aing = await c.get_me() except Exception as e: 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 2/2] 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: