- Platform information:
- Hardware: Intel Atom
- OS: Ubuntu 18.04
- Java Runtime Environment: which java platform is used and what version
- Java Runtime Environment: OpenJDK 1.8.0_222
- openHAB version: 2.4.0-1 (package from PPA)
- Issue of the topic: Telegram plugin not sending messages
- Please post configurations (if applicable):
- Items configuration related to the issue
- Sitemap configuration related to the issue
- Rules code related to the issue
- Services configuration related to the issue
/etc/openhab2/services/telegram.cfg contains :
bots=jbot
jbot.chatId=xxx
jbot.token=yyy:zzzzz
Upon saving the file, the logfile reports
[INFO ] [egram.internal.TelegramActionService] - Bot jbot loaded from config file
However, using sendTelegram(“jbot”,“test”)
in the console no message appears in telegram. Als logfiles report nothing, no error message whatsoever.
Same happens when I use the name “nosuchbot”, no error is being generated at all !
Tried to post a message using curl command, works perfectly !
curl --data chat_id=xxx --data-urlencode “text=Hello” “https://api.telegram.org/botyyy:zzzzz/sendMessage”
Also found the hint in the forums to clean the cache, but with no help
Any idea how to debug this ?
Many thanks