To send a photo from openhab to telegram i have to convert my image-item to “FullString”
In ECMA 5.1 i could do this with the function toFullString()
But i don’t know how to do this in ECMA 11…
Does anybody know what i can use in ECMA11 ?
This is my old code:
telegramAction.sendTelegramPhoto(camPic.state.toFullString(), "Printer is finished");
I think you have an Item instance from the openhab-js library. So the item is wrapped to simplify the methods. I would guess that you should use state() now.
toString() and toFullString() are not the same (e.g. see DateTimeType (openHAB Core 4.2.0-SNAPSHOT API)). So OP will need to call toFullString() on the rawState since state() only returns the toString().