Don't have Telegram yet? Try it now!
http://soloelectronicos.com/2018/10/18/como-agregar-un-boton-de-encendido-apagado-a-la-raspberry-pi/
Cómo agregar un botón de encendido/apagado a la Raspberry Pi