
import fg from 'api-dylux'
let handler = async (m, { conn, args, usedPrefix, command }) => {
if (!args[0]) throw `ðŸ”» Example : \n*${usedPrefix + command}* past link here`
          m.react(rwait)    
          try {
          let { SD, HD, desc, thumb, audio } = await fg.twitter(args[0])
          let te = ` 
â”Œâ”€âŠ· *TWITTER DL*
â–¢âœ« Description: ${desc}
â””â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€`
conn.sendFile(m.chat, HD, 'twitter.mp4', te, m)
m.react(done)
} catch (e) {
  	m.reply(`âœ³ï¸� verify that the link is from Twitter`)
	} 
	
}
handler.help = ['twitter'].map(v => v + ' <url>')
handler.tags = ['downloader']
handler.command = /^(twitter|tw)$/i
handler.diamond = false

export default handler
