In the old version of the Telegram app, scroll all the way down and click on Log Out option. It’s at the bottom of the menu.

To log in to your account again, click on START MESSAGING button and sign in with your account.