Telegram Plug-in to send text, images and video notifications

MarkdownV2 wants some charactes (_ * [ ] ( ) ~ > # + - = | { } . !) to be escaped. Just use “Markdown” instead (or HTML). IE:

local temp = luup.variable_get("urn:upnp-org:serviceId:TemperatureSensor1", "CurrentTemperature", 167) or "N/A"
local msg = "⚠ Temperature low: " .. temp .. " C"

luup.call_action("urn:bochicchio-com:serviceId:VeraTelegram1",
"Send",
{
Text=msg,
Format="Markdown" -- or "HTML"
},
515
)

I’ll try to take care of the special chars in the next updates later this week. Thanks for noticing!

2 Likes