localization: enhance bot descriptions and short descriptions in English and Russian for improved user clarity; update error message for download links
This commit is contained in:
parent
68983bbd32
commit
581e5a7802
@ -1,3 +1,18 @@
|
|||||||
|
description =
|
||||||
|
🎬 **Universal Video Downloader**
|
||||||
|
This bot allows you to quickly download videos and images from popular platforms directly to Telegram.
|
||||||
|
|
||||||
|
🟢 **Currently supported:**
|
||||||
|
- TikTok (without watermark)
|
||||||
|
|
||||||
|
⚡ Simply send the video link, and the bot will download it for you.
|
||||||
|
|
||||||
|
short-description =
|
||||||
|
Download TikTok videos (without watermark).
|
||||||
|
|
||||||
|
For any questions: @vchikalkin
|
||||||
|
|
||||||
|
|
||||||
start =
|
start =
|
||||||
.description = Start the bot
|
.description = Start the bot
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,24 @@
|
|||||||
|
description =
|
||||||
|
🎬 **Многофункциональный загрузчик видео и изображения**
|
||||||
|
Этот бот позволяет быстро скачивать видео и изображения из популярных платформ прямо в Telegram.
|
||||||
|
|
||||||
|
🟢 **Текущая поддержка:**
|
||||||
|
- TikTok (без водяного знака)
|
||||||
|
|
||||||
|
⚡ Просто отправьте ссылку на видео и изображения, и бот сразу скачает его для вас!
|
||||||
|
|
||||||
|
short-description =
|
||||||
|
Скачивай видео и изображения из TikTok (без водяного знака).
|
||||||
|
|
||||||
|
По всем вопросам: @vchikalkin
|
||||||
|
|
||||||
|
|
||||||
start =
|
start =
|
||||||
.description = Запуск бота
|
.description = Запуск бота
|
||||||
|
|
||||||
|
|
||||||
err-invalid-url = ❌ Неверная ссылка! Отправьте корректную ссылку TikTok (например: https://vt.tiktok.com/...)
|
err-invalid-url = ❌ Неверная ссылка! Отправьте корректную ссылку TikTok (например: https://vt.tiktok.com/...)
|
||||||
err-invalid-download-urls = 🔍 Не удалось найти ссылки для скачивания. Возможно, видео удалено или недоступно
|
err-invalid-download-urls = 🔍 Не удалось найти ссылки для скачивания. Возможно, видео и изображения удалено или недоступно
|
||||||
err-generic = ⚠️ Что-то пошло не так. Попробуйте еще раз через несколько секунд
|
err-generic = ⚠️ Что-то пошло не так. Попробуйте еще раз через несколько секунд
|
||||||
err-limit-exceeded = 🚫 Слишком много запросов! Подождите немного
|
err-limit-exceeded = 🚫 Слишком много запросов! Подождите немного
|
||||||
|
|
||||||
|
|||||||
@ -4,6 +4,7 @@ import { type Context } from './context';
|
|||||||
import * as features from './features';
|
import * as features from './features';
|
||||||
import { errorHandler } from './handlers/errors';
|
import { errorHandler } from './handlers/errors';
|
||||||
import { i18n } from './i18n';
|
import { i18n } from './i18n';
|
||||||
|
import { setInfo } from './info';
|
||||||
import * as middlewares from './middlewares';
|
import * as middlewares from './middlewares';
|
||||||
import { session } from './middlewares';
|
import { session } from './middlewares';
|
||||||
import { env } from '@/config/env';
|
import { env } from '@/config/env';
|
||||||
@ -60,6 +61,7 @@ export function createBot({ apiRoot, token }: Parameters_) {
|
|||||||
protectedBot.use(session());
|
protectedBot.use(session());
|
||||||
|
|
||||||
protectedBot.use(middlewares.updateLogger());
|
protectedBot.use(middlewares.updateLogger());
|
||||||
|
protectedBot.use(setInfo);
|
||||||
protectedBot.use(setCommands);
|
protectedBot.use(setCommands);
|
||||||
protectedBot.use(autoChatAction(bot.api));
|
protectedBot.use(autoChatAction(bot.api));
|
||||||
protectedBot.use(hydrate());
|
protectedBot.use(hydrate());
|
||||||
|
|||||||
9
apps/bot/src/bot/info/index.ts
Normal file
9
apps/bot/src/bot/info/index.ts
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import { type Context } from '../context';
|
||||||
|
import { type NextFunction } from 'grammy';
|
||||||
|
|
||||||
|
export async function setInfo(ctx: Context, next: NextFunction) {
|
||||||
|
await ctx.api.setMyDescription(ctx.t('description'));
|
||||||
|
await ctx.api.setMyShortDescription(ctx.t('short-description'));
|
||||||
|
|
||||||
|
return next();
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user