diff --git a/apps/bot/locales/ru.ftl b/apps/bot/locales/ru.ftl index ff99952..283e8f5 100644 --- a/apps/bot/locales/ru.ftl +++ b/apps/bot/locales/ru.ftl @@ -55,6 +55,7 @@ btn-pro = 👑 Pro доступ btn-subscribe = 👑 Приобрести Pro btn-pro-info = ℹ️ Мой Pro доступ btn-open-app = 📱 Открыть приложение +btn-faq = 📖 Инструкция btn-documents = 📋 Документы btn-back = ◀️ Назад diff --git a/apps/bot/src/config/env.ts b/apps/bot/src/config/env.ts index 2a78ad6..a2af5cf 100644 --- a/apps/bot/src/config/env.ts +++ b/apps/bot/src/config/env.ts @@ -18,6 +18,7 @@ export const envSchema = z.object({ .string() .transform((value) => Number.parseInt(value, 10)) .default('6379'), + URL_FAQ: z.string(), URL_OFFER: z.string(), URL_PRIVACY: z.string(), }); diff --git a/apps/bot/src/config/keyboards.ts b/apps/bot/src/config/keyboards.ts index a1277c7..449c4af 100644 --- a/apps/bot/src/config/keyboards.ts +++ b/apps/bot/src/config/keyboards.ts @@ -58,6 +58,11 @@ export const mainMenu = new Menu('main-menu', { autoAnswer: true }) .row() .text((ctx) => ctx.t('btn-documents'), handleDocuments) .row() + .url( + (ctx) => ctx.t('btn-faq'), + () => env.URL_FAQ, + ) + .row() .url( (ctx) => ctx.t('btn-open-app'), () => { diff --git a/turbo.json b/turbo.json index 041f0cd..2cf8936 100644 --- a/turbo.json +++ b/turbo.json @@ -19,7 +19,8 @@ "REDIS_PORT", "REDIS_PASSWORD", "URL_OFFER", - "URL_PRIVACY" + "URL_PRIVACY", + "URL_FAQ" ] }, "lint": {