text: const { toPTT } = require('../lib/converter')
  
  let handler = async (m, { conn, usedPrefix, command }) => {
    let q = m.quoted ? m.quoted : m
    let mime = (m.quoted ? m.quoted : m.msg).mimetype || ''
    if (!/video|audio/.test(mime)) throw `Balas audio yang ingin diubah ke voice note dengan perintah *${usedPrefix + command}*`
    let media = await q.download()
    let audio = await toPTT(media, 'mp4')
    conn.sendFile(m.chat, audio, '', '', null, 1, { mimetype: 'audio/mp4' })
  }
  handler.help = ['tovn']
  handler.tags = ['audio']
  
  handler.command = /^to(vn|(ptt)?)$/i
  
  module.exports = handler
  