Download Video TikTok Tanpa Watermark: Cara Mudah dan Cepat
const axios = require('axios'); const cheerio = require('cheerio');
let handler = async (m, { conn, usedPrefix, args, command, text }) => {
if (!text) throw Linknya Mana?;
m.reply(wait);
try {
let res = await tiktok(text);
let caption = *ID:* ${res.id} *Title:* ${res.title} *Created:* ${res.created_at};
await conn.sendMessage(m.chat, { video: { url: res.video.noWatermark }, caption: caption }, { quoted: m });
} catch (e) {
m.reply(Terjadi Kesalahan, Tidak Dapat Mengambil Data Dari Url/Link Yang Kamu Masukan);
}
};
handler.help = ['tiktok'];
handler.tags = ['downloader'];
handler.command = /^(tiktok|tt|ttdl|tiktokdl)$/i;
handler.limit = true;
module.exports = handler;
async function tiktok(url) { return new Promise((resolve, reject) => { if (!url) return reject(new Error('url input is required')); axios.get('https://api.tiklydown.eu.org/api/download', { params: { url } }) .then((b) => resolve(b.data)) .catch(reject); }); }
原文地址: https://www.cveoy.top/t/topic/pgqc 著作权归作者所有。请勿转载和采集!