I am trying to send Telegram messages with ECMAScript 262 Edition 11, but the same rule that works for me in ECMAScript 262 Edition 5.1 fails in Edition 2021. Specifically, I am trying this rule of two lines.
var telegramAction = actions.get("telegram","telegram:telegramBot:<uid>"); telegramAction.sendTelegram( chatId,"hello!!!");
Openhag logs ‘TypeError: (intermediate value).get is not a function’
Does anyone know if anything needs to be changed in Edition 11?
- Platform information:
- Hardware: amd64
- OS: Linux + Openhab 3.3.0 Container in Docker
- openHAB version: 3.3
- Issue of the topic: telegram binding with ECMAScript 262 Edition 11