Improved isAnAdmin() usage

This commit is contained in:
2022-12-15 14:31:42 +01:00
parent ee90e579b5
commit 49bed307ad
9 changed files with 9 additions and 9 deletions

View File

@@ -6,7 +6,7 @@ from classes.holo_user import HoloUser
@app.on_message(~ filters.scheduled & filters.private & filters.command(["label"], prefixes=["/"]))
async def cmd_label(app, msg):
if msg.chat.id == configGet("admin_group") or await isAnAdmin(msg.from_user.id):
if await isAnAdmin(msg.from_user.id) is True:
if len(msg.command) < 3:
await msg.reply_text("Invalid syntax:\n`/label USER LABEL`")