This commit is contained in:
yasirarism 2023-07-04 10:36:00 +07:00 committed by GitHub
parent 96caa41d6b
commit dcfb7e949a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -1,4 +1,4 @@
from .utils import PyromodConfig, patch, patchable
from .handle_error import handle_error
from .handler_error import handle_error
from .admin_utils import check_rights, is_admin
from .get_user import get_user

View file

@ -56,6 +56,7 @@ __HELP__ = """
/unbanuser [chat id] - Unban user and make their can use bot again
/gban - To Ban A User Globally.
/ungban - To remove ban user globbaly.
/restart - update and restart bot.
**For Public Use**
/stats - Check statistic bot
@ -493,7 +494,7 @@ async def cmd_eval(self: Client, ctx: Message, strings) -> Optional[str]:
# Update and restart bot
@app.on_message(filters.command(["update"], COMMAND_HANDLER) & filters.user(SUDO))
@app.on_message(filters.command(["restart"], COMMAND_HANDLER) & filters.user(SUDO))
@use_chat_lang()
async def update_restart(self: Client, ctx: Message, strings) -> "Message":
msg = await ctx.reply_msg(strings("up_and_rest"))