diff --git a/src/commands/youtube.js b/src/commands/youtube.js index e0fe2c9..cd19963 100644 --- a/src/commands/youtube.js +++ b/src/commands/youtube.js @@ -122,13 +122,11 @@ module.exports = (bot) => { } if (fs.existsSync(mp4File)) { - const message = Strings.ytUploadDesc - .replace("{userId}", userId) - .replace("{userName}", ctx.from.first_name); + const message = Strings.ytUploadDesc.replace("{userMention}", `[${ctx.from.first_name}](tg://user?id=${userId})`) try { await ctx.replyWithVideo({ - source: mp4File, + source: mp4File }, { caption: message, parse_mode: 'Markdown', }); diff --git a/src/locales/english.json b/src/locales/english.json index c8a18f3..76e2c9c 100644 --- a/src/locales/english.json +++ b/src/locales/english.json @@ -73,7 +73,7 @@ "ytLibNotFound": "*It seems that the yt-dlp executable does not exist on our server...\n\nIn that case, the problem is on our end! Please wait until we have noticed and solved the problem.*", "ytCheckingSize": "*Checking if the video exceeds the 50MB limit...*", "ytUploading": "*Uploading video...*", - "ytUploadDesc": "*[{userName}](tg://user?id={userId}), there is your downloaded video.*", + "ytUploadDesc": "{userMention}*, there is your downloaded video.*", "ytDownloadErr": "*Error during YT video download:*\n\n`{err}`", "ytUploadLimit": "*This video exceeds the 50 MB upload limit imposed by Telegram on our bot. Please try another video. We're doing our best to increase this limit.*", "ytUploadLimit2": "*This video had its quality reduced because it exceeded the 50MB limit for uploads imposed by Telegram.*", diff --git a/src/locales/portuguese.json b/src/locales/portuguese.json index b28d1b1..a10b1a3 100644 --- a/src/locales/portuguese.json +++ b/src/locales/portuguese.json @@ -72,8 +72,8 @@ "ytDownloading": "*Baixando vídeo...*", "ytCheckingSize": "Verificando se o vídeo excede o limite de 50 MB...", "ytLibNotFound": "*Parece que o executável do yt-dlp não existe no nosso servidor...\n\nNesse caso, o problema está no nosso lado! Aguarde até que tenhamos notado e resolvido o problema.*", - "ytUploading": "*Enviando video...*", - "ytUploadDesc": "*[{userName}](tg://user?id={userId}), aqui está o seu vídeo baixado.*", + "ytUploading": "*Enviando vídeo...*", + "ytUploadDesc": "{userMention}*, aqui está o seu vídeo baixado.*", "ytDownloadErr": "*Erro durante o download do vídeo do YT:*\n\n`{err}`", "ytUploadLimit": "*Este vídeo excede o limite de carregamento de 50 MB imposto pelo Telegram ao nosso bot. Por favor, tente outro vídeo. Estamos fazendo o possível para aumentar esse limite.*", "ytUploadLimit2": "*Esse vídeo teve a qualidade reduzida por estar excedendo o limite de 50MB para uploads imposto pelo Telegram.*",