From 2067beb05a06ba1fc5db074f0386f2db8a2833a7 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Fri, 22 Aug 2025 12:49:40 +0300 Subject: [PATCH] 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. --- apps/bot/locales/ru.ftl | 5 ++++- apps/bot/src/bot/features/help.ts | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/bot/locales/ru.ftl b/apps/bot/locales/ru.ftl index 157d8a7..7d0b3fe 100644 --- a/apps/bot/locales/ru.ftl +++ b/apps/bot/locales/ru.ftl @@ -29,7 +29,7 @@ becomemaster = sharebot = .description = Поделиться ботом help = - .description = Список команд + .description = Список команд и поддержка commands-list = 📋 Доступные команды: @@ -40,6 +40,9 @@ commands-list = Откройте приложение кнопкой "Открыть", чтобы отредактировать свой профиль или создать запись +support = + ℹ️ По всем вопросам и обратной связи: @vchikalkin + # Приветственные сообщения msg-welcome = diff --git a/apps/bot/src/bot/features/help.ts b/apps/bot/src/bot/features/help.ts index 9f55e37..70c9aad 100644 --- a/apps/bot/src/bot/features/help.ts +++ b/apps/bot/src/bot/features/help.ts @@ -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(); @@ -8,7 +9,10 @@ const composer = new Composer(); 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 };