From 7aec8d62fb24f4dd926eca362b1c4ab45d3eee2a Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Fri, 26 Nov 2021 08:30:06 +0700 Subject: [PATCH] fixes --- program/music.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/program/music.py b/program/music.py index d60e9bd..9e8c269 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_me()(chat_id, ubot)) + b = await c.get_chat_member(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_me()(chat_id, ubot)) + b = await c.get_chat_member(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.**"