This commit closes #6

This commit is contained in:
Profitroll 2023-08-12 18:45:23 +02:00
parent 5ad8cc750d
commit f6e85a7a2c
Signed by: profitroll
GPG Key ID: FA35CAB49DACD3B2
5 changed files with 14 additions and 1 deletions

View File

@ -106,6 +106,13 @@
"🙊"
],
"commands": {
"help": {
"scopes": [
{
"name": "BotCommandScopeDefault"
}
]
},
"language": {
"scopes": [
{

View File

@ -13,6 +13,7 @@
]
},
"commands": {
"help": "Nützliche Informationen anzeigen",
"language": "Sprache des Bots in dieser Gruppe einstellen",
"language_auto": "Automatische Sprachwahl umschalten"
},

View File

@ -10,6 +10,7 @@
]
},
"commands": {
"help": "Show some helpful info",
"language": "Set bot's language in this group",
"language_auto": "Toggle automatic language selection"
},

View File

@ -9,6 +9,7 @@
]
},
"commands": {
"help": "Показати корисну інформацію",
"language": "Встановити мову бота в цій групі",
"language_auto": "Переключити автоматичний вибір мови"
},

View File

@ -14,4 +14,7 @@ logger = logging.getLogger(__name__)
& filters.command(["help", "start"], prefixes=["/"]) # type: ignore
)
async def command_help(app: PyroClient, message: Message):
await message.reply_text(app._("help", "messages", locale=message.from_user.language_code))
await message.reply_text(
app._("help", "messages", locale=message.from_user.language_code),
disable_web_page_preview=True,
)