Nurutomo / wabot-aq

WhatsApp Bot
GNU General Public License v3.0
695 stars 1.38k forks source link

Tiktok tidak mengirimkan video #181

Closed Ftwrr closed 3 years ago

Ftwrr commented 3 years ago

Screenshot_2021-04-01-08-29-39-06

let fetch = require('node-fetch') let handler = async (m, { conn, args }) => { if (!args[0]) throw 'Uhm...url nya mana?' let res = await fetch(global.API('xteam', '/dl/tiktok', { url: args[0] }, 'APIKEY')) let json = await res.json() if (!json.result) throw json conn.sendFile(m.chat, json.result.url, 'tiktok.mp4', _*Username:*_ @${json.result.username} .trim(), m, false, { thumbnail }) } handler.help = ['tiktok'].map(v => v + ' ') handler.tags = ['downloader']

handler.command = /^(tiktok(dl)?)$/i

module.exports = handler

Nurutomo commented 3 years ago

ouwh

ariffb25 commented 3 years ago
json.result.url

ganti jadi

json.server_2
Bintang73 commented 3 years ago

Tiktok server_1