# 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 bots=heinz,kathleen # Handy Heinz S7 Active heinz.chatId=7XXXXXXX7 heinz.token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX # Handy Kathleen iPhone kathleen.chatId=7XXXXXXX7 kathleen.token=XXXXXXXXXXXXXXXX
and this is my rule entry:
sendTelegram("heinz", "Trockner ist fertig!") sendTelegram("kathleen", "Trockner ist fertig!")
But I am receiving in openhab log this error: [WARN ] [ab.action.telegram.internal.Telegram] - Method failed: HTTP/1.1 404 Not Found
# 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
bots=heinz,kathleen
# Handy Heinz S7 Active
heinz.chatId=-XXXXXXXX
heinz.token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# Handy Kathleen iPhone
kathleen.chatId=-XXXXXXXX
kathleen.token=XXXXXXXXXXXXXXXX
@H102
The 404 error comes from telegram responding that the binding asked for an address it couldnât find.
Nothing to do with the http binding
Maybe I was not precise enough. The check of the https://api.telegram.org/bot<token>/getUpdates was successful
But I still receive the 404 error message and no notification
# 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
bots=heinz,kathleen
# Handy Heinz S7 Active
heinz.chatId=-XXXXXXX
heinz.token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# Handy Kathleen iPhone
kathleen.chatId=-XXXXXXXX
kathleen.token=XXXXXXXXXXXXXXXX
The dash (-) in front of the chatId is a MUST for group chats. For a regular chat, there is no dash.
You might want to look to the config of the telegram action. Maybe you tested more configâs and the action didnât save properly the new one.
Take a look here HowTo: Manage OpenHab 2 configurations, section Some useful Karaf console commands.
Try and view the current telegram config in karaf console:
config:list "(service.pid=org.openhab.telegram)"
If the displayed config doesnât match the one from telegram.cfg you should delete it and let the action re-load the config from file by restarting openHAB.