From 9450b48586f8021611f1cbc54edfaccdf33a6da5 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Wed, 3 Nov 2021 20:15:17 +0700 Subject: [PATCH 1/2] info --- program/music.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/program/music.py b/program/music.py index a71fd7c..0596428 100644 --- a/program/music.py +++ b/program/music.py @@ -69,12 +69,12 @@ async def play(c: Client, m: Message): a = await c.get_chat_member(chat_id, aing.id) if a.status != "administrator": await m.reply_text( - f"💡 To use me, I need to be an **Administrator** with the following **permissions**:\n\n» ❌ __Delete messages__\n» ❌ __Ban users__\n» ❌ __Add users__\n» ❌ __Manage voice chat__\n\nData is **updated** automatically after you **promote me**" + f"💡 To use me, I need to be an **Administrator** with the following **permissions**:\n\n» ❌ __Delete messages__\n» ❌ __Restrict users__\n» ❌ __Add users__\n» ❌ __Manage video chat__\n\nData is **updated** automatically after you **promote me**" ) return if not a.can_manage_voice_chats: await m.reply_text( - "missing required permission:" + "\n\n» ❌ __Manage voice chat__" + "missing required permission:" + "\n\n» ❌ __Manage video chat__" ) return if not a.can_delete_messages: @@ -86,7 +86,7 @@ async def play(c: Client, m: Message): await m.reply_text("missing required permission:" + "\n\n» ❌ __Add users__") return if not a.can_restrict_members: - await m.reply_text("missing required permission:" + "\n\n» ❌ __Ban users__") + await m.reply_text("missing required permission:" + "\n\n» ❌ __Restrict users__") return try: ubot = await user.get_me() @@ -274,12 +274,12 @@ async def stream(c: Client, m: Message): a = await c.get_chat_member(chat_id, aing.id) if a.status != "administrator": await m.reply_text( - f"💡 To use me, I need to be an **Administrator** with the following **permissions**:\n\n» ❌ __Delete messages__\n» ❌ __Ban users__\n» ❌ __Add users__\n» ❌ __Manage voice chat__\n\nData is **updated** automatically after you **promote me**" + f"💡 To use me, I need to be an **Administrator** with the following **permissions**:\n\n» ❌ __Delete messages__\n» ❌ __Restrict users__\n» ❌ __Add users__\n» ❌ __Manage video chat__\n\nData is **updated** automatically after you **promote me**" ) return if not a.can_manage_voice_chats: await m.reply_text( - "missing required permission:" + "\n\n» ❌ __Manage voice chat__" + "missing required permission:" + "\n\n» ❌ __Manage video chat__" ) return if not a.can_delete_messages: @@ -291,7 +291,7 @@ async def stream(c: Client, m: Message): await m.reply_text("missing required permission:" + "\n\n» ❌ __Add users__") return if not a.can_restrict_members: - await m.reply_text("missing required permission:" + "\n\n» ❌ __Ban users__") + await m.reply_text("missing required permission:" + "\n\n» ❌ __Restrict users__") return try: ubot = await user.get_me() From 915c170881a9fe5f17ccb7f0c5e147f3fb5bf668 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Wed, 3 Nov 2021 20:18:36 +0700 Subject: [PATCH 2/2] info --- program/video.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/program/video.py b/program/video.py index ad082f7..0f773c9 100644 --- a/program/video.py +++ b/program/video.py @@ -75,12 +75,12 @@ async def vplay(c: Client, m: Message): a = await c.get_chat_member(chat_id, aing.id) if a.status != "administrator": await m.reply_text( - f"💡 To use me, I need to be an **Administrator** with the following **permissions**:\n\n» ❌ __Delete messages__\n» ❌ __Ban users__\n» ❌ __Add users__\n» ❌ __Manage voice chat__\n\nData is **updated** automatically after you **promote me**" + f"💡 To use me, I need to be an **Administrator** with the following **permissions**:\n\n» ❌ __Delete messages__\n» ❌ __Restrict users__\n» ❌ __Add users__\n» ❌ __Manage video chat__\n\nData is **updated** automatically after you **promote me**" ) return if not a.can_manage_voice_chats: await m.reply_text( - "missing required permission:" + "\n\n» ❌ __Manage voice chat__" + "missing required permission:" + "\n\n» ❌ __Manage video chat__" ) return if not a.can_delete_messages: @@ -92,7 +92,7 @@ async def vplay(c: Client, m: Message): await m.reply_text("missing required permission:" + "\n\n» ❌ __Add users__") return if not a.can_restrict_members: - await m.reply_text("missing required permission:" + "\n\n» ❌ __Ban users__") + await m.reply_text("missing required permission:" + "\n\n» ❌ __Restrict users__") return try: ubot = await user.get_me() @@ -304,12 +304,12 @@ async def vstream(c: Client, m: Message): a = await c.get_chat_member(chat_id, aing.id) if a.status != "administrator": await m.reply_text( - f"💡 To use me, I need to be an **Administrator** with the following **permissions**:\n\n» ❌ __Delete messages__\n» ❌ __Ban users__\n» ❌ __Add users__\n» ❌ __Manage voice chat__\n\nData is **updated** automatically after you **promote me**" + f"💡 To use me, I need to be an **Administrator** with the following **permissions**:\n\n» ❌ __Delete messages__\n» ❌ __Restrict users__\n» ❌ __Add users__\n» ❌ __Manage video chat__\n\nData is **updated** automatically after you **promote me**" ) return if not a.can_manage_voice_chats: await m.reply_text( - "missing required permission:" + "\n\n» ❌ __Manage voice chat__" + "missing required permission:" + "\n\n» ❌ __Manage video chat__" ) return if not a.can_delete_messages: @@ -321,7 +321,7 @@ async def vstream(c: Client, m: Message): await m.reply_text("missing required permission:" + "\n\n» ❌ __Add users__") return if not a.can_restrict_members: - await m.reply_text("missing required permission:" + "\n\n» ❌ __Ban users__") + await m.reply_text("missing required permission:" + "\n\n» ❌ __Restrict users__") return try: ubot = await user.get_me()