Update admintool.py

This commit is contained in:
Abhi
2024-02-13 00:57:30 +05:30
committed by GitHub
parent 7cc60b20b5
commit 8dbaaf0fef

View File

@@ -1277,9 +1277,9 @@ async def unro(client: Client, message: Message):
@Client.on_message(filters.command("antiraid", prefix) & filters.me)
async def antiraid(client: Client, message: Message):
if message.chat.type != "supergroup":
await message.edit("<b>Not supported in non-supergroup chats</b>", parse_mode=enums.ParseMode.HTML)
return
# if message.chat.type != "supergroup":
# await message.edit("<b>Not supported in non-supergroup chats</b>", parse_mode=enums.ParseMode.HTML)
# return
if len(message.command) > 1 and message.command[1] == "on":
db.set("core.ats", f"antiraid{message.chat.id}", True)
@@ -1360,4 +1360,4 @@ modules_help["admintool"] = {
"welcome [text]*": "enable auto-welcome to new users in groups. "
"Running without text equals to disable",
"kickdel": "Kick all deleted accounts",
}
}