From 48cc44dca06d60b87db0e1c66bf89820da14dfff Mon Sep 17 00:00:00 2001 From: Schmakus <8231359+Schmakus@users.noreply.github.com> Date: Sun, 5 Nov 2023 15:45:06 +0100 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5c5a7a5..76b4629 100644 --- a/README.md +++ b/README.md @@ -80,11 +80,11 @@ readFile("doorbird.0", "TakeSnapshot_1.jpg", function (error, data) { }); ``` -or since js-controller 4.1.x +or since js-controller 5 ``` setState('doorbird.0.TakeSnapshot', true); -onFile("doorbird.0", "TakeSnapshot_1.jpg", false, function (id, fileName, size, fileData, mimeType) { +onFile("doorbird.0", "TakeSnapshot_1.jpg", true, function (id, fileName, size, fileData, mimeType) { sendTo('telegram.0', { text: fileData, type: 'photo'