Don't have Telegram yet? Try it now!
http://onezeronull.com/2013/07/16/using-accelerometer-in-phonegap-applications/
Using accelerometer in PhoneGap applications