Don't have Telegram yet? Try it now!
http://digiemc.com/the-project-demonstrates-whether-or-not-it-is-connected-to-the-internet-in-c/