How to Set Up Passcode Lock on Telegram
In this article
Yes, Telegram has a built-in passcode lock that lets you protect the app with a PIN or password. This adds a layer of privacy so that if someone opens your phone, they cannot read your chats without entering the code. You can set it up in under a minute from the app’s Settings menu. Note that this is separate from your phone’s lock screen—it’s an extra lock just for Telegram.
What You'll Need
- The Telegram app installed on your phone (iOS or Android).
- Your Telegram account logged in.
- Access to your phone’s Settings app (for the optional fingerprint/face unlock step).
Step-by-Step
- Open the Telegram app on your phone.
- Tap the hamburger menu (three horizontal lines) in the top-left corner (Android) or tap Settings at the bottom-right (iOS).
- Select Settings from the menu.
- Scroll down and tap Privacy and Security (on some versions it may be labeled Privacy & Security).
- Under the Security section, tap Passcode & Face ID (on iPhone) or Passcode & Fingerprint (on Android). The exact wording may vary slightly by version.
- Tap Turn Passcode On (or the toggle switch next to Passcode).
- Enter a 4-digit passcode of your choice. You will be asked to enter it again to confirm.
- Optionally, you can enable Fingerprint Unlock or Face ID by toggling the relevant switch. This allows you to unlock Telegram with your biometrics instead of typing the passcode every time.
- Set the Auto-lock timer. Choose how long Telegram can stay unlocked in the background before it locks again. Options typically include Immediately, 1 minute, 5 minutes, etc. Pick the one that suits your needs.
- Once configured, the passcode will be active. When you open Telegram after the auto-lock period, you’ll be prompted to enter your passcode (or use fingerprint/Face ID).
Common Mistakes
- Forgetting the passcode: There is no way to recover or reset a forgotten passcode. You will have to log out and back in, which deletes your local message history (though cloud chats are still stored on Telegram’s servers).
- Setting an overly long auto-lock timer: If you set it to 5 minutes or more, the lock may not appear when you expect it. Choose a shorter time for better protection.
- Enabling biometric unlock without a backup: If your fingerprint or Face ID fails, you’ll need the passcode. Make sure you remember it.
- Not updating the app: Older versions may have different menu names. Keep Telegram updated to see the current settings.
Tips
- Use a passcode that is different from your phone’s lock screen PIN to avoid a single point of failure.
- If you have a smartwatch or wearables, note that Telegram’s passcode does not protect notifications on those devices. Consider disabling message previews in your phone’s notification settings for extra privacy.
- On Android, you can also set Telegram to lock when you press the back button (if your device has a back button) by enabling the “Lock app” option in the same menu.
- If you use Telegram on a desktop, the passcode is not available there. You can use the app’s “Lock” feature (via the three-dot menu) to lock it manually, but it does not require a passcode.
- For maximum security, enable two-step verification (a separate password for logging in) in Settings > Privacy and Security > Two-Step Verification. This protects your account from being accessed on a new device.
Troubleshooting
If the passcode does not work as expected:
- Check that you are using the latest version of Telegram. Go to your app store and update if needed.
- Restart the app. Close Telegram completely and reopen it to see if the lock engages.
- Verify the auto-lock setting. If you set it to “Immediately,” the lock should appear as soon as you switch away. If it doesn’t, try setting it to 1 minute and test again.
- Log out and log back in. This will clear the local cache and reset the passcode. Note that you will lose any unsent messages and cached media, but your chats will be restored from the cloud.
- Reinstall the app. As a last resort, uninstall and reinstall Telegram. You will need to log in again with your phone number and verification code. This will erase all local data, so make sure you have your login credentials ready.
Frequently Asked Questions
Can I set a passcode on Telegram for desktop?
No, the passcode lock is only available on the mobile apps (iOS and Android). On desktop, you can lock the app manually with a keyboard shortcut (Ctrl+L on Windows, Cmd+L on Mac), but it does not require a passcode.
What happens if I forget my Telegram passcode?
There is no recovery option. You must log out of Telegram and log back in. This will delete your local message history, but your cloud chats will still be available after you log in again.
Does the passcode protect my secret chats?
Yes, the passcode locks the entire app, including secret chats and all other chats. However, secret chats are device-specific and are not stored in the cloud, so if you log out, those secret chats will be lost permanently.
Can I use my fingerprint or face to unlock Telegram instead of typing the passcode?
Yes, if your phone supports biometrics, you can enable Fingerprint Unlock or Face ID in the same passcode settings. This is optional and can be turned on after setting the passcode.
Does the passcode lock apply to notifications?
No, the passcode only locks the app itself. Notifications on your lock screen or notification shade may still show message previews. To hide them, go to your phone’s notification settings for Telegram and disable previews.
Will the passcode lock prevent someone from reading my messages if they have my phone?
Yes, as long as the passcode is enabled and the auto-lock timer is set to a short duration, anyone who opens Telegram will be prompted for the passcode. However, if you leave the app open and the timer is long, they could still access it.