mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 12:49:57 +00:00
is it having access to ffmpeg?
This commit is contained in:
parent
fbacb44386
commit
ef258e0c15
@ -86,7 +86,9 @@ module.exports = (bot) => {
|
||||
},
|
||||
);
|
||||
|
||||
const dlpArgs = [videoUrl, videoFormat, ...cmdArgs.split(' '), mp4File];
|
||||
const ffmpegArgs = '&& which ffmpeg';
|
||||
|
||||
const dlpArgs = [videoUrl, videoFormat, ...cmdArgs.split(' '), mp4File, ffmpegArgs];
|
||||
await downloadFromYoutube(dlpCommand, dlpArgs);
|
||||
|
||||
await ctx.telegram.editMessageText(
|
||||
@ -99,6 +101,8 @@ module.exports = (bot) => {
|
||||
},
|
||||
);
|
||||
|
||||
if(fs.existsSync)
|
||||
|
||||
if (fs.existsSync(mp4File)) {
|
||||
const message = strings.ytUploadDesc
|
||||
.replace("{userId}", userId)
|
||||
|
Loading…
x
Reference in New Issue
Block a user