This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Comments
https://www.domoticz.com/wiki/Telegram_Bot
I think this part is what we need:
https://www.domoticz.com/wiki/Telegram_Bot#Sending_notifications_to_a_channel_to_inform_multiple_users
I am not a programmer, so I don't know if this is the way you implemented the Telegram app. But if so, it should be easy to add channels If not: is there some way I can help using this bot method to use Telegram?
This also is kind of a restart for this app. I never had a good plan on where to go with this app, and kinda made it hard for myself because I wanted to do too much.
The new version will have some options removed:
- The /snap command will be removed
- The "custombot" settings will be removed, only the default bot is available.
However, the new version will have some improvements:
- Support for "official" Homey image tokens
- You can "register" multiple chat users to the same Homey, so when you send a message you can select which user or users need to receive the message
I think this new version will be done by next weekend. I might however have to wait a few days so I can also make the Synology app work correctly again, with the new official image tokens. I already have a new version of the ImageGrabber ready as well, for which I am also still waiting so I don't break anything.
Might release them as beta though.
If so, as I mentioned before, I definitely will not use the app....
If privacy is such a big issue telegram with the fsb backdoor isnt a good option anyways.
(yes its already in there as the whitehat hackers have confirmed)
Not sure wether to post this here in this part of the forum or the one about the ImageGrabber, but...here goes
Installed the Telegram bot yesterday (private version) and tested it. Works fine. Then I installed ImageGrabber and after some fiddling around I found out how to get a snapshot from my Hikvision camera(s). I tested the URL in Chrome and IE and both browsers gave me a snapshot in return, so...that seems to work too.
Then I build these flows in Homey:
I use the card with my phone to verify that a flow has correctly gotten to that particular part of the flow. I receive the confirmation on both flows, but...no Telegram
Is this due to the fact that some things within the Telegram/Imagegrabber apps are not working all the time?
Any help is appreciated.
BTW I have decided to put keep the option to use your own bot in future versions.
Whoot! That's great news. Are you also working on an option to send Telegrams to a group instead of a user?
And then just allow multiple ID’s to be set?
It's highly appreciated!
So so for example, to send an image, I just use the following:
Looking at your codes, it seems that when setting the chat_id intitially, it is getting from the user sending the /register command instead of where the /register command was sent.
IIf this could be change to Chat.id that would be perfect! Alternatively, allowing users the option to set which chat_id to send to would work as well.
Thanks v much again. again, just a suggestion!
So you can add multiple Chat ID's and give them a name/ description in the settings:
Then if the flows, when you want to send the telegram message, you can choose from a list of chat ID's (although shown as the name / description of course)
+ I am now able to recognize multiple 'register' actions from different accounts √
+ Sending messages to multiple users works √
+ Homey can be dragged into group chats, and after registering you can send messages to the group. √
Still need to do:
- Set up custom bot
- Be able to send an Image token
- Be able to delete users/groups from the settings page
I do have a synology NAS and do have several Foscam cam's.
And I do have a Homey offcourse
I like the idea to make a snapshot if somebody is pushing the doorbell and send it to my telegram account somehow.
Is there somewhere a tutorial showing the steps how to make this magic happening?
See the previous page, I posted screenshots.
Thanks. I do understand how to use the cards. I think that will be the easy step
But I need some help to install/ to use settings for Image Grabber and how to install Telegram app settings.
It would be helpful to have a tutorial describing all the needed steps
The Telegram app needs to be installed, then the app shows you how to register your Telegram account with Homey. It's a matter of sending a '/register' command to the @athomhomey bot on Telegram.
Tanks again. This will be a nice project for the weekend
EDIT: I tested it. It is working perfect!!
Next is to add support for the Homey image tokens.
Now struggling with the webhook (which isn't sending the messages from Telegram to Homey right now). When that is done, I can see if I can get the "/ask insert_question_here" function working again. Once that is done, the app is ready for release.