This commit is contained in:
levina 2021-11-26 08:30:06 +07:00 committed by GitHub
parent d7fb5c27db
commit 7aec8d62fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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