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.**"