Don't have Telegram yet? Try it now!
http://blog.amit-agarwal.com/2010/05/24/inotify/
Inotify Example: Introduction to Inotify with a C Program Example