Updated locale strings

This commit is contained in:
2023-08-30 11:01:59 +02:00
parent 9cda8859da
commit 9403c087cc
6 changed files with 81 additions and 51 deletions

View File

@@ -8,5 +8,7 @@ from classes.pyroclient import PyroClient
~filters.scheduled & filters.private & filters.command(["remove_commands"], prefixes=["/"]) # type: ignore
)
async def command_remove_commands(app: PyroClient, message: Message):
await message.reply_text("Okay.")
user = await app.find_user(message.from_user)
await message.reply_text(app._("commands_removed", "messages", locale=user.locale))
await app.remove_commands(command_sets=await app.collect_commands())