In fact, the functionality was implemented in XMPP module, somehow
Not sure how it looks like exactly in internals, and if it has hook server.
Also I guess, there should be not much complexity in sending just string in/out telegram bot.
as for JSON, as far as I understand - XMPP console is limited to just simple values per item, no heavy-structured data.
Hi,
Any way to send emoticons?
It seems that to send just the related utf-8 unicode does not work
i.e for smile face : sendTelegram(âbot1â,"\xF0\x9F\x98\x81") doesnât work
How is the code when I have the image in the tmp directory of Raspi /tmp/1.jpg?
or
var String IP_Cam_Garage_URL = âfile:///tmp/1.jpgâ?
Designer no accept
sendTelegramPhoto(âOpenhabbotâ,(IP_Cam_Garage_URL))
Telegram API allows to send bold and italics with and , but actual OpenHAB Action does not seem to support it. I see there have been no activity on this thread for a long time now, so I guess the development is dead, but just wanted to point it out as a feature request in case it will be any future action update
Iâm like you are waiting for the support of formatted text in OpenHAB Telegram Action (my pull request doesnât accepted - https://github.com/openhab/openhab1-addons/pull/5490), so I manually compiled Telegram Action with Markdown formatting support (you can read about Markdown here https://core.telegram.org/bots/api#formatting-options). So you need to delete installed Telegram action from Paper UI, then download my file, rename it from pdf to jar, then put it to /usr/share/openhab2/addons. Enjoy
UPDATE: Iâm deleted my custom jar file, because itâs generate a error, if your telegram message have an alone _ or * symbol.
So, here another version of my custom Telegram Action build.
If you want to enable text formatting just install my jar file and add to telegram.cfg new string for each bot:
bot_name.parseMode=Markdown
Option key is simple: Markdown for Markdown mode or HTML for HTML mode. If formatting donât needed - leave option blank or delete it (donât forget that OpenHAB stores option in own database and you need to clean it).
If you enabled Markdown mode and your telegram messages have a Markdown formatting mode symbols, like _ or * - server returns error âBad requestâ, because its think, that you forget to close Markdown tag. Its a normal api behavior.