Telegram integration

Post your questions and help other users.

Moderator: Martin

Post Reply
hoods
Posts: 2
Joined: 21 Jan 2018 16:16

Telegram integration

Post by hoods » 24 Jan 2018 18:46

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

Pfriemler
Posts: 1
Joined: 06 Sep 2019 08:10

Re: Telegram integration

Post by Pfriemler » 07 Sep 2019 11:56

That's exactly my question: how to send telegram messages to my FHEM bot ...

still no hints, folks?

User avatar
tsolignani
Posts: 187
Joined: 12 Jan 2019 11:53
Location: Vignola, Mo, Italy
Contact:

Re: Telegram integration

Post by tsolignani » 23 Apr 2020 12:22

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.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Telegram integration

Post by Desmanto » 27 Apr 2020 17:58

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/
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.

Post Reply