Re:Show HN: A tool to send push notifications to your phone,...
by zogomoox on Tuesday December 28, 2021 @07:25PM
(#29720097)
I needed something similar, a reverse 'wake-on-lan' command that shuts down or reboots systems (but could be any kind of action), so I created a telegram bot that presents the list of commands over telegram chat app. I liked that I did not have to open any ports or serve http pages, the bot is really just a script that's long polling the telegram servers via https/json.
[ Parent
| on HN ]
Re:Show HN: A tool to send push notifications to your phone,...
by binwiederhier on Tuesday December 28, 2021 @07:27PM
(#29720119)
> long polling the telegram servers via https/json.
That's literally what the ntfy API is, too. Long polling over https, either as JSON or SSE or RAW. Dead simple: https://ntfy.sh/docs/subscribe/api/