Fixed buggy video caption on youtube.js

This commit is contained in:
Luquinhas 2025-01-10 09:49:58 -03:00
parent 901e5ab98a
commit ac7d6f69d1
No known key found for this signature in database
GPG key ID: D9B075FC6DC93985
3 changed files with 5 additions and 7 deletions

View file

@ -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',
});