Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import fetch from 'node-fetch'
- const fb = (await import ("fb-downloader-scrapper")).default
- let handler = async (m, { conn, text, args }) => {
- if (!args[0]) throw 'Input URL'
- m.reply('_In progress, please wait..._')
- let downlod = fb(args[0])
- let res = downlod.then(async (res) => {
- if (!res) throw res
- conn.sendFile(m.chat, res.download[0].url, 'fb.mp4', ID+'\n'+wm, m)
- })
- }
- handler.help = ['facebook']
- handler.tags = ['downloader']
- handler.alias = ['fb', 'fbdl', 'facebook', 'facebookdl']
- handler.command = /^(pesbuk)$/i
- handler.register = true
- handler.premium = true
- export default handler
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement