Cleanup
This commit is contained in:
@@ -89,7 +89,7 @@ module.exports = function(){
|
|||||||
|
|
||||||
return bot.telegram.getFileLink(id).then(link=>{
|
return bot.telegram.getFileLink(id).then(link=>{
|
||||||
const file = "/tmp/"+id+"."+vid;
|
const file = "/tmp/"+id+"."+vid;
|
||||||
download((link,file),function(){
|
download(link,file,function(){
|
||||||
rev.reverse(file).then(res=>{
|
rev.reverse(file).then(res=>{
|
||||||
return event.replyWithVideo({source: res.path});
|
return event.replyWithVideo({source: res.path});
|
||||||
}).catch(err=>{bot.error(err)});
|
}).catch(err=>{bot.error(err)});
|
||||||
|
Reference in New Issue
Block a user