[logreader] Correct example for telegram binding (#9663)

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 <soeren.berger@u1337.de>
This commit is contained in:
Sören Berger 2021-01-06 20:39:01 +01:00 committed by GitHub
parent 4077a2732a
commit a27c1648dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -99,15 +99,15 @@ rule "LogReader"
end 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 ```xtend
rule "LogReader" rule "LogReader"
when when
Channel 'logreader:reader:openhablog:newErrorEvent' triggered Channel 'logreader:reader:openhablog:newErrorEvent' triggered
then then
// do something val telegramAction = getActions("telegram","telegram:telegramBot:myBot")
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) 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 end
``` ```