Fixed buggy video caption on youtube.js
This commit is contained in:
parent
901e5ab98a
commit
ac7d6f69d1
3 changed files with 5 additions and 7 deletions
|
@ -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',
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue