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
Telegram integration
Moderator: Martin
Re: Telegram integration
That's exactly my question: how to send telegram messages to my FHEM bot ...
still no hints, folks?
still no hints, folks?
- tsolignani
- Posts: 187
- Joined: 12 Jan 2019 11:53
- Location: Vignola, Mo, Italy
- Contact:
Re: Telegram integration
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.
Any news on your side, did you manage to do it?
Thank you.
Re: Telegram integration
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
For telegram channel, it seems they have their API you can use.
https://www.reddit.com/r/Telegram/comme ... nnel_with/
Code: Select all
putString("android.intent.extra.TEXT", "yourmessage");
https://www.reddit.com/r/Telegram/comme ... nnel_with/
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.