WhatsApp or Telegram?
Moderators: leecollings, remb0
-
Ritmeester
- Posts: 53
- Joined: Thursday 06 March 2014 18:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
WhatsApp or Telegram?
WhatsApp or Telegram?
For my new Raspberry Pi install I want a message system such as WhatsApp or Telegram.
I use om my smartphone WhatsApp but I can also use Telegram if necessary.
So, what is on this moment the best to install and use? WhatsApp or Telegram?
For my new Raspberry Pi install I want a message system such as WhatsApp or Telegram.
I use om my smartphone WhatsApp but I can also use Telegram if necessary.
So, what is on this moment the best to install and use? WhatsApp or Telegram?
- sincze
- Posts: 1302
- Joined: Monday 02 June 2014 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: Netherlands / Breda Area
- Contact:
Re: WhatsApp or Telegram?
Hi, good question.
I started with Telegram as it is widely documented and relatively easy to use with Domoticz.
As my girlfriend does not have Telegram I uses WhatsApp as well.
Keep in mind WhatsApp does not really like this (no official API) and the number you use to send out the messages can be blocked.
To go for safe use Telegram. To have some fun try WhatsApp.

I started with Telegram as it is widely documented and relatively easy to use with Domoticz.
As my girlfriend does not have Telegram I uses WhatsApp as well.
Keep in mind WhatsApp does not really like this (no official API) and the number you use to send out the messages can be blocked.
To go for safe use Telegram. To have some fun try WhatsApp.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
-
Ritmeester
- Posts: 53
- Joined: Thursday 06 March 2014 18:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: WhatsApp or Telegram?
Thanks.
I’m now trying WhatsApp but it seems that Telegram is more stable and has its own API .
I’m looking to Wiki pages but for me it is not exactly clear what I have to install for just receiving messages from my Domoticz system.
Can you help me with the correct link?
I’m now trying WhatsApp but it seems that Telegram is more stable and has its own API .
I’m looking to Wiki pages but for me it is not exactly clear what I have to install for just receiving messages from my Domoticz system.
Can you help me with the correct link?
- Egregius
- Posts: 2592
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: WhatsApp or Telegram?
Create a telegram bot and then just call the api using curl or whatever, quite simple. Don't need anything installed.
Code: Select all
https://api.telegram.org/bot111592135:AAEZ-xCShO-RBfUrICiJs8q9A_3YIr9irxI/sendMessage?chat_id=123456&text=this is a test- sincze
- Posts: 1302
- Joined: Monday 02 June 2014 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: Netherlands / Breda Area
- Contact:
Re: WhatsApp or Telegram?
Try the bot first indeed without any installation at all.
It is official so future proof I would say.
My system is still using the 'old' style telegram-cli
https://www.domoticz.com/wiki/Installin ... ion_System
Also rock solid. However does take some time to setup. But when it's up... it's up.
It is official so future proof I would say.
My system is still using the 'old' style telegram-cli
https://www.domoticz.com/wiki/Installin ... ion_System
Also rock solid. However does take some time to setup. But when it's up... it's up.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
- Varazir
- Posts: 487
- Joined: Friday 20 February 2015 22:23
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Contact:
Re: WhatsApp or Telegram?
Another option is to use http://joaoapps.com/join/
Add it to the Custom HTTP/action
#FIELD1= the key you get from the webpage
https://joinjoaomgcd.appspot.com/_ah/ap ... Id=#FIELD4
But this works only on android/Chrome(browser plugin)/win10(nativ app)
It has support for Tasker if you use that that.
Add it to the Custom HTTP/action
#FIELD1= the key you get from the webpage
https://joinjoaomgcd.appspot.com/_ah/ap ... Id=#FIELD4
But this works only on android/Chrome(browser plugin)/win10(nativ app)
It has support for Tasker if you use that that.
Last edited by Varazir on Sunday 26 June 2016 18:51, edited 1 time in total.
Raspberry PI 4 with RaZberry Controller 2016 ZWave+ and CC2531(zigbee)
Several IKEA devices/z-wave devices
Several IKEA devices/z-wave devices
- Egregius
- Posts: 2592
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: WhatsApp or Telegram?
The great advantage of Telegram is that you don't need to install anything on/in your domoticz AND that it has apps for all platforms.
I use Telegram for all kinds of notifications from several systems, couldn't think that I need to view my phone for each message.
Another great option is silent delivery, great for some logging messages.
I use Telegram for all kinds of notifications from several systems, couldn't think that I need to view my phone for each message.
Another great option is silent delivery, great for some logging messages.
-
Derik
- Posts: 1605
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Re: WhatsApp or Telegram?
i mis both options here,,,:
Can i send to different persons with Telegram?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
- jvdz
- Posts: 2445
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: WhatsApp or Telegram?
Just use the HTTP option which you define in "Custom HTTP/Action:" for sending messages via the Telegram bot.
To send it to multiple devices you can use a chat_id of a GroupChat containing all person you want to send the text to.
Jos
To send it to multiple devices you can use a chat_id of a GroupChat containing all person you want to send the text to.
Jos
-
Ritmeester
- Posts: 53
- Joined: Thursday 06 March 2014 18:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: WhatsApp or Telegram?
I have stopped with WhatsApp integration because of the install problems in this topic
I did try Telegram and managed to make a bot according to this Wiki page and enter the Telegram data into Domoticz. I’m really impressed !!
It is working fine and I receive messages on my Android phone from a PIR sensor in my test setup. It is really fast, when I put my finger by the sensor the message is already on my phone.
Now I must figure out how to get an image from one of my camera’s into Telegram message.
Thanks for helping me to put me on the right way.
(My test setup on the table. The new Pi will be the new system. The hardware I made by myself.)
I did try Telegram and managed to make a bot according to this Wiki page and enter the Telegram data into Domoticz. I’m really impressed !!
It is working fine and I receive messages on my Android phone from a PIR sensor in my test setup. It is really fast, when I put my finger by the sensor the message is already on my phone.
Now I must figure out how to get an image from one of my camera’s into Telegram message.
Thanks for helping me to put me on the right way.
(My test setup on the table. The new Pi will be the new system. The hardware I made by myself.)
- Attachments
-
- 2016-06-26 19.35.59 - 800.jpg (126.66 KiB) Viewed 3842 times
Last edited by Ritmeester on Monday 27 June 2016 18:59, edited 2 times in total.
- jvdz
- Posts: 2445
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: WhatsApp or Telegram?
This is the bash script I use from the DTGBOT setup. It gets the Image from the camera and sends it via telegram:
Should get you started. 
Jos
Code: Select all
#!/bin/sh
SendMsgTo=$1
#################################################################
SnapFile="/var/tmp/camsnapshot.jpg"
wget -O $SnapFile "192.168.0.30:8080/camsnapshot.jpg?idx=1"
#sleep 1
curl -s -X POST "https://api.telegram.org/bot"$TelegramBotToken"/sendPhoto" -F chat_id=$SendMsgTo -F photo="@$SnapFile"
/bin/rm $SnapFile
Jos
-
Derik
- Posts: 1605
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Re: WhatsApp or Telegram?
Can i send with this option the image to different persons/contacts?jvdz wrote:This is the bash script I use from the DTGBOT setup. It gets the Image from the camera and sends it via telegram:Should get you started.Code: Select all
#!/bin/sh SendMsgTo=$1 ################################################################# SnapFile="/var/tmp/camsnapshot.jpg" wget -O $SnapFile "192.168.0.30:8080/camsnapshot.jpg?idx=1" #sleep 1 curl -s -X POST "https://api.telegram.org/bot"$TelegramBotToken"/sendPhoto" -F chat_id=$SendMsgTo -F photo="@$SnapFile" /bin/rm $SnapFile
Jos
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
-
Derik
- Posts: 1605
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Re: WhatsApp or Telegram?
jvdz wrote:Just use the HTTP option which you define in "Custom HTTP/Action:" for sending messages via the Telegram bot.
To send it to multiple devices you can use a chat_id of a GroupChat containing all person you want to send the text to.
Jos
Sorry i am a dombo with this coolstuff...
Please explane some more things with a picture...
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
-
Ritmeester
- Posts: 53
- Joined: Thursday 06 March 2014 18:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: WhatsApp or Telegram?
I take a look to the above script. Do I have to install the DTGBOT libraries to get this script to work?
- jvdz
- Posts: 2445
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: WhatsApp or Telegram?
No need for that. Just referenced the source of te script. 'Ritmeester wrote:Do I have to install the DTGBOT libraries to get this script to work?
DTGBOT install is only needed when you want to be able to Domoticz actions from your Telegram client.
Jos
-
Ritmeester
- Posts: 53
- Joined: Thursday 06 March 2014 18:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: WhatsApp or Telegram?
Thanks Jos,jvdz wrote: No need for that. Just referenced the source of te script. '
DTGBOT install is only needed when you want to be able to Domoticz actions from your Telegram client.
Jos
It’s getting clear to me now how thing are working with Telegram. I will try this script tomorrow.
- Egregius
- Posts: 2592
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: WhatsApp or Telegram?
You don't need the script if you only want notifications.
You only need the script if you want to switch stuff on/off from within Telegram.
You only need the script if you want to switch stuff on/off from within Telegram.
Who is online
Users browsing this forum: Bing [Bot] and 1 guest