Page 1 of 1

Telegram integration

Posted: 24 Jan 2018 18:46
by hoods
Hi all,

I would like to call Telegram messenger from a workflow to send a message. I have successfully setup my workflow using Telegram Bot API but unfortunately Bot to Bot communication is not allowed by the API so my Telegram Bot connected to Fhem cannot read the Telegram message I've sent from my mobile phone.

To overcome this situation I would have to use my own Telegram account (call the installed android app from automagic) or call the Chrome Telegram WebApp. Is it's possible to use telegram intents, did anybody successfully used telegram intents to send messages?

Any other ideas?

Thanks in advance, Sven

Re: Telegram integration

Posted: 07 Sep 2019 11:56
by Pfriemler
That's exactly my question: how to send telegram messages to my FHEM bot ...

still no hints, folks?

Re: Telegram integration

Posted: 23 Apr 2020 12:22
by tsolignani
I would need to do that to update a Telegram channel as well.

Any news on your side, did you manage to do it?

Thank you.

Re: Telegram integration

Posted: 27 Apr 2020 17:58
by Desmanto
I don't use telegram, can't test it. I believe it will be very similar to whatsapp, where you can use Start Activity : android.intent.action.SEND and pass the text in the extras

Code: Select all

putString("android.intent.extra.TEXT", "yourmessage");
For telegram channel, it seems they have their API you can use.
https://www.reddit.com/r/Telegram/comme ... nnel_with/