Telegram - Bot not defined; action skipped

telegram
Tags: #<Tag:0x00007f01412e2e78>

(Tobus) #1

Hello,
according to the guide I done the configuration of the Telegram bot:

telegram.cfg:

#
# Read http://www.instructables.com/id/Telegram-Bots-for-beginners/
# to see how to set up bots and find your chat ids
#

bots=bot1,bot2

bot1.chatId=zzz
bot1.token=xx:yyy

bot2.chatId=zzz
bot2.token=xx:yyy

telegram.rules:

rule "Send telegram with Fixed Message"
when
   Item ZWaveTRsensorBalkon_DoorSensor changed
then
    sendTelegram("bot1","test")
end

rule "Send telegram with Fixed Message2"
when
   Item ZWaveTRsensorBalkon_DoorSensor changed
then
   sendTelegram("bot2","item DoorSensor changed")
end

openhab.log:

2018-10-14 10:46:10.355 [INFO ] [egram.internal.TelegramActionService] - Bot bot1 loaded from config file
2018-10-14 10:46:10.361 [INFO ] [egram.internal.TelegramActionService] - Bot bot2 loaded from config file
2018-10-14 10:47:04.731 [WARN ] [ab.action.telegram.internal.Telegram] - Bot 'bot1' not defined; action skipped.
2018-10-14 10:47:04.731 [WARN ] [ab.action.telegram.internal.Telegram] - Bot 'bot2' not defined; action skipped.
2018-10-14 10:47:07.455 [WARN ] [ab.action.telegram.internal.Telegram] - Bot 'bot2' not defined; action skipped.
2018-10-14 10:47:07.461 [WARN ] [ab.action.telegram.internal.Telegram] - Bot 'bot1' not defined; action skipped.
2018-10-14 10:50:26.333 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'telegram.rules'
2018-10-14 10:50:41.841 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'telegram.rules'
2018-10-14 10:50:49.785 [WARN ] [ab.action.telegram.internal.Telegram] - Bot 'bot1' not defined; action skipped.

I have no clue what I’m doing wrong here. Any ideas?

Thanks a lot
Tobus


(Tobus) #2

Ok, i dont know why, but after rebooting the device all works fine.