feat(help): enhance help command with support information

- Updated the help command to include a support message in the Russian localization, providing users with a contact point for inquiries.
- Improved the command response by combining the list of available commands with the new support information, enhancing user experience.
This commit is contained in:
vchikalkin 2025-08-22 12:49:40 +03:00
parent d985b18f25
commit 2067beb05a
2 changed files with 9 additions and 2 deletions

View File

@ -29,7 +29,7 @@ becomemaster =
sharebot =
.description = Поделиться ботом
help =
.description = Список команд
.description = Список команд и поддержка
commands-list =
📋 Доступные команды:
@ -40,6 +40,9 @@ commands-list =
Откройте приложение кнопкой "Открыть", чтобы отредактировать свой профиль или создать запись
support =
По всем вопросам и обратной связи: @vchikalkin
# Приветственные сообщения
msg-welcome =

View File

@ -1,6 +1,7 @@
import { type Context } from '@/bot/context';
import { logHandle } from '@/bot/helpers/logging';
import { KEYBOARD_REMOVE } from '@/config/keyboards';
import { combine } from '@/utils/messages';
import { Composer } from 'grammy';
const composer = new Composer<Context>();
@ -8,7 +9,10 @@ const composer = new Composer<Context>();
const feature = composer.chatType('private');
feature.command('help', logHandle('command-help'), async (ctx) => {
return ctx.reply(ctx.t('commands-list'), { ...KEYBOARD_REMOVE, parse_mode: 'HTML' });
return ctx.reply(combine(ctx.t('commands-list'), ctx.t('support')), {
...KEYBOARD_REMOVE,
parse_mode: 'HTML',
});
});
export { composer as help };