Skip to content

Commit

Permalink
Fix "Need Instagram link" while installing plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
souravkl11 authored Jun 4, 2022
1 parent 9f15644 commit 5d96211
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/instagram.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ Module({
desc: 'Downloads post/reel/igtv from instagram',
usage: 'insta link or reply to a link'
}, (async (msg, query) => {
if (query[0] === 'install') return;
var q = !msg.reply_message.message ? query[1] : msg.reply_message.message
var q = !msg.reply_message.message ? query[1] : msg.reply_message.message
if (q.startsWith('l')) return;
if (!q) return await msg.client.sendMessage(msg.jid, {
text: "*Need instagram link*"
}, {
Expand Down Expand Up @@ -125,4 +125,4 @@ Module({
await msg.sendReply(video, type);
})
};
}));
}));

0 comments on commit 5d96211

Please sign in to comment.