From a27c1648dd7602277d9348c858df991a25bebae4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Berger?= Date: Wed, 6 Jan 2021 20:39:01 +0100 Subject: [PATCH] [logreader] Correct example for telegram binding (#9663) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The original example references to the old telegram action, which is no longer supported. The updated example uses the (new) telegram binding. Signed-off-by: Sören Berger --- bundles/org.openhab.binding.logreader/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bundles/org.openhab.binding.logreader/README.md b/bundles/org.openhab.binding.logreader/README.md index 2ad53f7d6..9e1425458 100644 --- a/bundles/org.openhab.binding.logreader/README.md +++ b/bundles/org.openhab.binding.logreader/README.md @@ -99,15 +99,15 @@ rule "LogReader" end ``` -Use the rules with your Telegram Bot (need openHAB Telegram Action installed and configured) +Use the rules with your Telegram Bot (need openHAB Telegram Binding installed and configured) ```xtend rule "LogReader" when Channel 'logreader:reader:openhablog:newErrorEvent' triggered then - // do something - sendTelegram("bot3", "*ERROR* LogReader Event!\n%s Errors are in the log! Here is the last row of it:\n`%s`", logreaderErrors.state.toString, logreaderLastError.state.toString) + val telegramAction = getActions("telegram","telegram:telegramBot:myBot") + telegramAction.sendTelegram("*ERROR* LogReader Event!\n%s Errors are in the log! Here is the last row of it:\n`%s`", logreaderErrors.state.toString, logreaderLastError.state.toString) end ```