From d7fb5c27db1c9af0cf9bce34e92a02d0c4efcafa Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Fri, 26 Nov 2021 06:50:23 +0700 Subject: [PATCH] trying to fix --- program/music.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/program/music.py b/program/music.py index 9e8c269..d60e9bd 100644 --- a/program/music.py +++ b/program/music.py @@ -89,7 +89,7 @@ async def play(c: Client, m: Message): return try: ubot = (await user.get_me()).id - b = await c.get_chat_member(chat_id, ubot) + b = (await c.get_me()(chat_id, ubot)) if b.status == "kicked": await m.reply_text( f"@{ASSISTANT_NAME} **is banned in group** {m.chat.title}\n\n» **unban the userbot first if you want to use this bot.**" @@ -304,7 +304,7 @@ async def stream(c: Client, m: Message): return try: ubot = (await user.get_me()).id - b = await c.get_chat_member(chat_id, ubot) + b = (await c.get_me()(chat_id, ubot)) if b.status == "kicked": await m.reply_text( f"@{ASSISTANT_NAME} **is banned in group** {m.chat.title}\n\n» **unban the userbot first if you want to use this bot.**"