Don't have Telegram yet? Try it now!
https://ideatrash.net/2014/07/run-different-programs-on-connecting.html
Run Different Programs On Connecting and Disconnecting From Networks with Both WICD and Network-Manager in Linux