you can use the StringBuilder class to create a message object before you call sendTelegram
val StringBuilder TelegramMessage = new StringBuilder
TelegramMessage.append("whatever you want to put here")
TelegramMessage.append(Iphone_R.state)
sendTelegram("bot1","Iphone Meli %s", TelegramMessage.toString)
thanks to both of you, now it works so far, i’m just looking around if there a possibility to format the text, so that result of the state or temps are in one row one under the next.
I’ve tried this, but did not get telegram running with any Markdown or HTML configuration. As it looks like, the latest version of Telegram Actions (1.13.0) in the repository openhab-addons-2.4.0 does not contain any of the mentioned configurational things.
Any idea? (I really don’t want to use any snapshot, as it looks like, that the change already exists).