Telegram issues

I have issues With Telegram action ( sendTelegram() ). I am running Build #567.

If i make a test rule like this:

rule "Test ON"
when
        Item Test1 changed to ON
then
        sendTelegram("bot1", "Modus ist jetzt abwesend.")
end

everything is fine. But if i use the same function in this rule:

rule "Anwesenheit 3"
when
        Item Abwesend changed to OFF
then
        logInfo("Abwesenheit", "Abwesend is inaktiv")

        var DateTime beulerAus = parse(now.getYear() + "-" + now.getMonthOfYear() + "-" + now.getDayOfMonth() + "T" + "22:00")
        var DateTime beulerAn = parse(now.getYear() + "-" + now.getMonthOfYear() + "-" + now.getDayOfMonth() + "T" + "07:00")
        var DateTime tvAus = parse(now.getYear() + "-" + now.getMonthOfYear() + "-" + now.getDayOfMonth() + "T" + "23:59")
        var DateTime tvAn = parse(now.getYear() + "-" + now.getMonthOfYear() + "-" + now.getDayOfMonth() + "T" + "07:00")

        if(beulerAus.afterNow && beulerAn.beforeNow){
                sendCommand(Kueche_Steckdose_outlet,ON)
        }
        if(tvAus.afterNow && tvAn.beforeNow){
                sendCommand(TV_Steckdose_outlet,ON)
        }

        sendCommand(Esszimmer_Netatmo_mode,"program")
        sendTelegram("bot1", "Modus ist jetzt anwesend.")

end

It doesn’t work and logs this:

[ERROR] [.script.engine.ScriptExecutionThread] - Rule 'Anwesenheit 3': An error occured during the script execution: The name 'sendTelegram(<XStringLiteralImpl>,<XStringLiteralImpl>)' cannot be resolved to an item or type.

any ideas?

Jens