Skip to content

Commit

Permalink
fix sending media group when more than 1 screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
lluisd committed May 19, 2024
1 parent bf69fb1 commit 6e901e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class Stream {
async _sendStreamScreenshots(telegramBot, streamId) {
const screenshots = await ScreenshotService.getScreenshots(streamId)
console.log('sending images: ' + screenshots.length)
if (screenshots && screenshots.length > 2) {
if (screenshots && screenshots.length > 1) {
const chunkSize = 10
let index = 0
for (let i = 0; i < screenshots.length; i += chunkSize) {
Expand Down

0 comments on commit 6e901e0

Please sign in to comment.