diff --git a/apps/bot/locales/en.ftl b/apps/bot/locales/en.ftl index 67e9d52..c3fe44c 100644 --- a/apps/bot/locales/en.ftl +++ b/apps/bot/locales/en.ftl @@ -10,9 +10,9 @@ description = ⚡ Simply send the video link, and the bot will download it for you. short-description = - Download TikTok, Instagram and YouTube videos and images. - - For any questions: @v_dev_support + Bot downloads videos and pictures + Support: @v_dev_support + Donate: { $donateLink } start = diff --git a/apps/bot/locales/ru.ftl b/apps/bot/locales/ru.ftl index 1e9b8bd..688a820 100644 --- a/apps/bot/locales/ru.ftl +++ b/apps/bot/locales/ru.ftl @@ -10,9 +10,9 @@ description = ⚡ Просто отправьте ссылку на видео и изображения, и бот сразу скачает его для вас! short-description = - Скачивай видео и изображения из TikTok, Instagram и YouTube. - - По всем вопросам: @v_dev_support + Бот скачивает видео и изображения + Поддержка: @v_dev_support + Поблагодарить: { $donateLink } start = diff --git a/apps/bot/src/bot/settings/info.ts b/apps/bot/src/bot/settings/info.ts index 0820b6d..503803c 100644 --- a/apps/bot/src/bot/settings/info.ts +++ b/apps/bot/src/bot/settings/info.ts @@ -1,10 +1,13 @@ import { type Context } from '../context'; import { i18n } from '../i18n'; +import { env } from '@/config/env'; import { type Api, type Bot, type RawApi } from 'grammy'; export async function setInfo({ api }: Bot>) { for (const locale of i18n.locales) { await api.setMyDescription(i18n.t(locale, 'description')); - await api.setMyShortDescription(i18n.t(locale, 'short-description')); + await api.setMyShortDescription( + i18n.t(locale, 'short-description', { donateLink: env.DONATE_LINK }), + ); } } diff --git a/apps/bot/src/config/env.ts b/apps/bot/src/config/env.ts index ef13c3d..c6a352a 100644 --- a/apps/bot/src/config/env.ts +++ b/apps/bot/src/config/env.ts @@ -3,6 +3,7 @@ import { z } from 'zod'; export const envSchema = z.object({ BOT_TOKEN: z.string(), + DONATE_LINK: z.string(), RATE_LIMIT: z .string() .transform((value) => Number.parseInt(value, 10))