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.