Skip to content

Commit

Permalink
Fix IIFE
Browse files Browse the repository at this point in the history
  • Loading branch information
lluisd committed Mar 16, 2024
1 parent 4b3a836 commit 5db7593
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions handlers/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ class Stream {
media: `${config.externalUrl}/images/${s.name}.jpg`,
caption: `Captura de *${s.capturedBy}*`,
parse_mode: 'Markdown'
}))
}));
((ind, p) => {
setTimeout(async () => {
await telegramBot.sendMediaGroup(config.telegram.chatId, p, { disable_notification: true }).catch((err) => {
console.log(err.code)
console.log(err.response?.body)
})
}, 65000 * ind)
})(index, photos)
}, 65000 * ind);
})(index, photos);
}
} else if (screenshots && screenshots.length === 1) {
await telegramBot.sendPhoto(config.telegram.chatId, `${config.externalUrl}/images/${screenshots[0].name}.jpg`, {
Expand Down

0 comments on commit 5db7593

Please sign in to comment.