akn/AllDownloaderBot/main.py
CHANGED
@@ -331,7 +331,7 @@ async def mode_button(client, message: Message):
|
|
331 |
is_sudo = await db.get_alldlbot_sudouser(client.me.id, message.from_user.id)
|
332 |
protect_own = await db.get_alldlbot_by_user_id(message.from_user.id, client.me.id)
|
333 |
if not protect_own and not is_sudo:
|
334 |
-
return await
|
335 |
|
336 |
if len(message.command) < 2:
|
337 |
return await message.reply_text(f"**Please provide a cmd /nobutton on/off to start button disabled or enabled")
|
|
|
331 |
is_sudo = await db.get_alldlbot_sudouser(client.me.id, message.from_user.id)
|
332 |
protect_own = await db.get_alldlbot_by_user_id(message.from_user.id, client.me.id)
|
333 |
if not protect_own and not is_sudo:
|
334 |
+
return await message.reply_text("You are not allowed here.") # type: ignore
|
335 |
|
336 |
if len(message.command) < 2:
|
337 |
return await message.reply_text(f"**Please provide a cmd /nobutton on/off to start button disabled or enabled")
|