[check] some fixes
This commit is contained in:
parent
7d26fcfcf0
commit
74571bf37d
@ -197,8 +197,10 @@ async def new_chat(c: Client, m: Message):
|
|||||||
else:
|
else:
|
||||||
await add_served_chat(chat_id)
|
await add_served_chat(chat_id)
|
||||||
for member in m.new_chat_members:
|
for member in m.new_chat_members:
|
||||||
|
if member.id == me_bot.id:
|
||||||
|
try:
|
||||||
if chat_id in await blacklisted_chats():
|
if chat_id in await blacklisted_chats():
|
||||||
await m.reply(
|
await m.reply_text(
|
||||||
"❗️ This chat has blacklisted by sudo user and You're not allowed to use me in this chat."
|
"❗️ This chat has blacklisted by sudo user and You're not allowed to use me in this chat."
|
||||||
)
|
)
|
||||||
return await bot.leave_chat(chat_id)
|
return await bot.leave_chat(chat_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user