[SOLVED] Telegram Binding - sendTelegram() results in a time lock for 60 seconds

Hello everybody!

I set up the telegram binding, created a bot and invited it to my Smarthome group. There it shall publish some changes from openHAB. Unfortunately this works only once and I am locked for about 60 seconds until I can send a new message. Do you know what this could be?

Rule:

rule "Send telegram test message"

when
   Item SmartSwitch1Button changed
then 
    if( SmartSwitch1Button.state == 1004 ) {
        val telegramAction = getActions("telegram","telegram:telegramBot:32c63904")
        telegramAction.sendTelegram("Der Smart Switch 1 wurde zweimal gedrückt!")
    }
end

Log message:

[WARN ] [binding.telegram.bot.TelegramActions] - Failed to send telegram message: Too Many Requests: retry after 14

Best regards
Markus

The bots needs to be admin of the group. Otherwise it can only send one message per minute!

1 Like