Don't have Telegram yet? Try it now!
https://onezeronull.com/2011/12/05/auto-loggoff-user-if-session-time-has-passed/
Auto-loggoff user, if session time has passed