Lynxdecode / TIKTOK DL | DOWNLOADER
Base Code : Plugin Esm Author : Lynx decode Note : ga support download story org, sup foto dan vidio album message untu foto jadi ga bertumpuk 1-1
FrontendJavaScript
7 views
Base Code : Plugin Esm Author : Lynx decode Note : ga support download story org, sup foto dan vidio album message untu foto jadi ga bertumpuk 1-1
/**
* ───「 FEATURE AUTHOR 」───
* 👤 Author : Lynx Decode
* 📞 Contact : +62 882-5804-1396
* 📢 Channel : https://whatsapp.com/channel/0029VbAnuii6GcGCu73oep1i
* ⚠️ Note : Keep credit to respect the creator!
* ─────────────────────────
* 📝 Plugin: TikTok Downloader Album Mode (Universal)
*/
import fetch from 'node-fetch'
let handler = async (m, { conn, text, usedPrefix, command }) => {
if (!text) return m.reply(`*Format salah!*\nGunakan: ${usedPrefix + command} <link_tiktok>`)
try {
await m.react('⏳')
let res = await fetch(`https://api.cuki.biz.id/api/downloader/tiktok?apikey=cuki-x&url=${encodeURIComponent(text)}`)
let json = await res.json()
if (!json.success || !json.results) throw new Error('Konten tidak ditemukan atau link tidak valid.')
let data = json.results
let isVideo = data.type === 'video'
let infoText = `📥 *TikTok Downloader*\n\n` +
`👤 *Author:* ${data.author?.nickname || data.author?.unique_id || '-'}\n` +
`📝 *Caption:* ${data.caption || '-'}\n` +
`❤️ *Likes:* ${data.stats?.digg_count || 0}\n` +
`💬 *Comments:* ${data.stats?.comment_count || 0}`
if (isVideo) {
await conn.sendMessage(m.chat, {
video: { url: data.nowm },
caption: infoText
}, { quoted: m })
} else if (data.images && data.images.length > 0) {
for (let img of data.images) {
await conn.sendMessage(m.chat, { image: { url: img } }, { quoted: m })
}
await conn.sendMessage(m.chat, { text: infoText }, { quoted: m })
} else {
throw new Error('Konten tidak valid.')
}
await m.react('✅')
} catch (e) {
await m.react('❌')
m.reply(`❌ *Terjadi kesalahan:* ${e.message}`)
}
}
handler.help = ['tt <url>']
handler.tags = ['downloader']
handler.command = /^tt$/i
export default handler