6 ms·
Back then, i want to receive a notification directly to my phone whenever "an event" happened on my server. So, i did this : 1. Create a Telegram bot by using
by altilunium 5y ago
Back then, i want to receive a notification directly to my phone whenever "an event" happened on my server. So, i did this :
1. Create a Telegram bot by using BotFather (/newbot), get its HTTP API access token.
2. Invite that bot to a group, make it as a administrator.
3. Invite @RawDataBot to that group. It will tell the group's chat_id.
4. Done. If we want to trigger the notification, just send HTTP GET to https :// api.telegram.org/botBOTTOKEN/sendMessage?chat_id=CHATID&text=URLENCODEDTEXT . Replace BOTTOKEN with your bot's HTTP API access token , CHATID with the group's chat_id, and URLENCODEDTEXT with the notification text body (url encoded).
Thank you for making this open source. At least, by using this, now i can self-host everything without having to rely to Telegram anymore.
- Abishek_Muthian 5y agoIf you're on android you can also use MQTT Client[1] and Tasker[2] to receive MQTT messages and further process it the way you like. You need a MQTT broker, Any RPi could serve as one. P.S. Congratulations on the launch OP, I've been looking at gotify for a while and would try to use yours when the need arises. [1] https://play.google.com/store/apps/details?id=in.dc297.mqttclpro https://play.google.com/store/apps/details?id=in.dc297.mqttc... [2] https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm https://play.google.com/store/apps/details?id=net.dinglisch....
- sneak 5y agoBe advised: this shares all of your notification texts with the Telegram server operators (Telegram is not end to end encrypted). The software in TFA can be self-hosted, for privacy.
- hansel_der 5y agoafaik all push notifications are only transport encrypted and hence can be seen in clear by either google or apple