Spaces:
Paused
Paused
File size: 531 Bytes
bb69f9b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
const { instagram, bot } = require('../lib/')
bot(
{
pattern: 'insta ?(.*)',
desc: 'Download Instagram Posts',
type: 'download',
},
async (message, match) => {
match = match || message.reply_message.text
if (!match) return await message.send('_Example : insta url_')
const result = await instagram(match)
if (!result.length)
return await message.send('*Not found*', {
quoted: message.quoted,
})
for (const url of result) {
await message.sendFromUrl(url)
}
}
)
|