From 6e901e0f4e76971893e7cafdd2bd30f20b60471a Mon Sep 17 00:00:00 2001 From: Lluis Date: Sun, 19 May 2024 12:02:15 +0200 Subject: [PATCH] fix sending media group when more than 1 screenshot --- handlers/stream.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/stream.js b/handlers/stream.js index 700acd6..c3413ee 100644 --- a/handlers/stream.js +++ b/handlers/stream.js @@ -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) {