Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case 'ig': case 'igdl': case 'instagram': {
- if(!q) return setReply("Link ig nya mana kak")
- if (!args[0].includes('instagram.com')) return setReply(`Maaf kak link salah! perintah ini untuk mengunduh postingan instagram`)
- let urlnya = q
- hx.igdl(urlnya)
- .then(async(result) => {
- var halo = 0
- setReply(mess.wait)
- xdev.sendMessage(m.chat, { image: { url: result.user.profilePicUrl }, jpegThumbnail: await getBuffer(result.user.profilePicUrl), caption: `「 INSTAGRAM DOWNLOADER 」\n\n⭔ *Nickname :* ${result.user.fullName}\n⭔ *Followers :* ${result.user.followers}\n⭔ *ID :* ${result.user.id}\n⭔ *Filetype :* ${result.medias[0].fileType}\n⭔ *Jumlah Media :* ${result.medias.length}\n⭔ *Url :* ${q}\n` }, { quoted: dev })
- for(let i of result.medias) {
- if(i.url.includes('mp4')){
- let link = await getBuffer(i.url)
- xdev.sendMessage(m.chat, { video: link, jpegThumbnail: await getBuffer(i.preview), caption: `Nih kak hasil ${i.type} instagram` }, { quoted: dev })
- } else {
- let link = await getBuffer(i.url)
- xdev.sendMessage(m.chat, { image: link, jpegThumbnail: await getBuffer(i.preview), caption: `Nih kak hasil ${i.type} instagram` }, { quoted: dev })
- }
- }
- }).catch((err) => {
- console.log(error);
- }
- )
- };
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement