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] 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: