Hello,
i have a question how to install and use the telegram action under oh2. I have read some tutorials, but i have an issue that i did not found yet.
- i have created a bot, communication between my android device has no problems
- the getUpdate Method on the API of Telegram works
- telegram action is installed with the PaperUI
- telegram token, botname and chatID is configured in telegram.cfg unter directory services
- rule is created with PaperUI, the only command is sendTelegram(“myBot”, “Test”)
telegram.cfg
telegram:bots=myBot
telegram:myBot.chatId=307xxxxxx
telegram:myBot.token=2252747xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
tried also without “telegram:”, no difference
Now the error message(s):
22:12:34.323 [INFO ] [smarthome.event.RuleStatusInfoEvent ] - rule_1 updated: IDLE
22:12:34.347 [INFO ] [smarthome.event.RuleUpdatedEvent ] - Rule ‘rule_1’ has been updated.
22:12:41.744 [INFO ] [smarthome.event.RuleStatusInfoEvent ] - rule_1 updated: RUNNING
22:12:42.162 [WARN ] [cript.internal.ScriptModuleActivator] - Found wrong classloader: To prevent class loading problems use this directive: -Dorg.osgi.framework.bundle.parent=ext
22:12:42.264 [ERROR] [cript.internal.ScriptModuleActivator] - Exception while importing scope: java.lang.ClassNotFoundException: org.eclipse.smarthome.core.library.types.OpenClosedType cannot be found by com.eclipsesource.jaxrs.publisher_5.3.1.201602281253
22:12:42.270 [ERROR] [internal.handler.ScriptActionHandler] - Script execution failed: ReferenceError: “sendTelegram” is not defined in at line number 1
22:12:42.271 [INFO ] [smarthome.event.RuleStatusInfoEvent ] - rule_1 updated: IDLE
22:13:06.827 [INFO ] [smarthome.event.RuleStatusInfoEvent ] - rule_1 updated: RUNNING
22:13:06.828 [ERROR] [internal.handler.ScriptActionHandler] - Script execution failed: ReferenceError: “sendTelegram” is not defined in at line number 1
22:13:06.828 [INFO ] [smarthome.event.RuleStatusInfoEvent ] - rule_1 updated: IDLE
22:13:48.245 [INFO ] [smarthome.event.RuleStatusInfoEvent ] - rule_1 updated: RUNNING
22:13:48.247 [ERROR] [internal.handler.ScriptActionHandler] - Script execution failed: ReferenceError: “sendTelegram” is not defined in at line number 1
22:13:48.250 [INFO ] [smarthome.event.RuleStatusInfoEvent ] - rule_1 updated: IDLE
Can someone help me?