fixes
This commit is contained in:
parent
d7fb5c27db
commit
7aec8d62fb
@ -89,7 +89,7 @@ async def play(c: Client, m: Message):
|
|||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
ubot = (await user.get_me()).id
|
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":
|
if b.status == "kicked":
|
||||||
await m.reply_text(
|
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.**"
|
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
|
return
|
||||||
try:
|
try:
|
||||||
ubot = (await user.get_me()).id
|
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":
|
if b.status == "kicked":
|
||||||
await m.reply_text(
|
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.**"
|
f"@{ASSISTANT_NAME} **is banned in group** {m.chat.title}\n\n» **unban the userbot first if you want to use this bot.**"
|
||||||
|
Loading…
Reference in New Issue
Block a user