Lock Telegram with password | Grav

How to Lock Telegram with a Password (And Why Your Phone Lock Isn't Enough)

Your phone's lock screen protects everything on your device from someone who doesn't have your PIN or biometric. But it doesn't help much with people who do - a partner who knows your passcode, a colleague you handed your phone to for a moment, a family member who picks it up while you're in another room. Telegram's built-in passcode lock adds a second layer specifically for the app: even if someone is past your phone's lock screen, they can't open Telegram without the app's own code. It takes about two minutes to set up.

Lock Telegram with password


Quick Answer (For Those in a Hurry)

Go to Settings -> Privacy and Security -> Passcode Lock, tap Enable Passcode, set a 4-digit or custom code, confirm it, then set an Auto-Lock interval. Enable biometric unlock (fingerprint or Face ID) in the same section if your device supports it. After setup, Telegram locks automatically after the interval and can be manually locked anytime by tapping the lock icon in the app.


What This Guide Actually Helps You Do

This guide is designed for readers who want to change privacy or safety settings without misunderstanding what other people can still see. It adds value beyond the basic menu path by explaining which signals are hidden, which ones remain visible, and whether the change affects one conversation, one contact, or the whole account. That matters because privacy features are easy to overestimate, especially when screenshots, notifications, profile visibility, or group behavior still reveal context.

The practical goal is to leave you with a result you can verify, not just a menu path you followed. It also keeps the limits visible: this guide does not pretend to offer total invisibility, message secrecy against screenshots, or a way to bypass another person's privacy settings. It shows the reliable path, the trade-offs, and the checks that help you avoid repeating the same mistake.


Real Situations Where an App-Level Lock Actually Matters

Your phone lock covers one scenario - your phone is lost or physically inaccessible. Telegram's app lock covers a different set of scenarios that are arguably more common.

You share your phone with someone - a partner, a family member, a roommate - and have conversations you'd prefer to stay private. Not secret, necessarily, just personal. Work conversations, private exchanges with friends, health-related discussions. You've trusted this person with your phone for practical reasons, but that doesn't mean they need access to everything on it. Telegram's passcode lock creates a boundary that doesn't require explanation.

You regularly hand your phone to others for specific purposes - showing a photo, letting someone make a call, sharing a screen - and leave Telegram open in the background. During those moments, anyone can tap back to your app list, open Telegram, and read through your chats without any malicious intent - it's just easy and tempting. Auto-lock closes that window automatically, and the app-level passcode means that even with the phone unlocked, Telegram isn't accessible without the code.

You use Telegram on a shared or semi-public device - a work computer, a family tablet, a shared laptop - and leave sessions running. This is particularly relevant for Telegram Desktop. Without a local passcode, anyone who sits down at that computer can open Telegram and browse everything. The desktop passcode lock closes the app between uses and requires the code to reopen it.


Before You Set This Up: One Thing to Know

If you forget your Telegram passcode, the only way to reset it is to log out of your account and log back in - which clears all locally stored data. Your cloud-synced messages come back when you log in again, but local data (secret chats, cached media) is lost. Telegram cannot recover a forgotten passcode for you - there's no "forgot my passcode" option that sends a reset link. Choose something you'll remember, or store it somewhere secure before you enable the lock.


How to Lock Telegram with a Password - Step by Step

Step 1 - Open Telegram Settings

On mobile, tap the hamburger menu (menu) and select Settings. On desktop, click the menu menu and go to Settings.


Step 2 - Go to Privacy and Security

In Settings, tap Privacy and Security. This section contains all account protection and visibility settings.


Step 3 - Enable Passcode Lock

Scroll down to find Passcode Lock and tap it. Toggle it on to enable the feature. Telegram will immediately prompt you to set a passcode.


Step 4 - Set Your Passcode

Enter your chosen passcode. By default, Telegram uses a 4-digit numeric code. On some versions, you can switch to a longer numeric code or an alphanumeric password for stronger protection - tap the options at the top of the keypad to change the format. Avoid obvious codes: birth years, repeating digits, or sequential numbers.


Step 5 - Confirm Your Passcode

Enter the same code again to confirm. If the two entries don't match, Telegram asks you to try again. Once confirmed, the passcode is set.


Step 6 - Set Auto-Lock Timing

After the passcode is created, you'll see the Auto-Lock option. Tap it and choose how long Telegram should stay open without interaction before locking automatically. Options range from 1 minute to 5 hours, or you can set it to lock immediately when you leave the app. For the best balance of security and convenience, 1-5 minutes works well for most people. If you leave the phone unattended frequently, a shorter interval is safer.


Step 7 - Enable Biometric Unlock (Optional)

If your device supports fingerprint or Face ID authentication, Telegram will offer to enable it for unlocking. Toggle on Unlock with Fingerprint (or Face ID on iPhone). With this enabled, you can unlock Telegram with your biometric instead of typing the passcode - the code remains as a fallback if biometrics fail. This is the most convenient security setup: fast to unlock for you, protected against anyone else.


Step 8 - Manually Lock Telegram When Needed

With the passcode set, you can lock Telegram at any moment rather than waiting for the auto-lock timer. On mobile, tap the lock icon that now appears in the upper-right corner of the app. The app locks immediately and requires your passcode or biometric to reopen. Use this whenever you're handing your phone to someone else or stepping away.


What Changes After You Enable Passcode Lock

The most noticeable immediate change is the lock screen that appears every time you open Telegram after the auto-lock interval has passed. The design is minimal - just a passcode entry field or biometric prompt, with nothing from your conversations visible behind it. No chat previews, no sender names, no message content.

Notification previews are a separate setting worth addressing alongside the passcode. Telegram notifications on your lock screen or notification shade may still show message content even when the app is locked - the app passcode doesn't affect notification display. Go to Settings -> Notifications and adjust the notification preview settings to show only the sender's name (or nothing) rather than message content, to complete the privacy setup.

For desktop users, Telegram Desktop's local passcode works similarly - the app locks after a set interval and requires the code to reopen. The desktop version can also be locked manually from the settings or through the system tray icon's right-click menu.


Advanced Tips: A More Complete Security Setup

Combine app passcode with two-step verification for account-level protection. The passcode protects local access to the app on your device. Two-step verification (Settings -> Privacy and Security -> Two-Step Verification) protects your account from being accessed on a new device using only your phone's SMS code. These are independent security layers - one protects the app on your phone, the other protects your account from being compromised elsewhere. Both matter.

Set notification previews to "No name or message" for complete lock screen privacy. Even with Telegram locked, your phone's lock screen can show incoming Telegram notifications with the sender's name and message content. This bypasses the app lock entirely as an information source. Go to Settings -> Notifications -> Message Previews and set it to hide content (or name and content) while the phone is locked. Combined with the app passcode, this closes the lock screen information gap.

Review and terminate active sessions regularly. Active sessions (Settings -> Privacy and Security -> Active Sessions) show every device and location where your Telegram account is currently logged in. An app passcode on your phone doesn't protect you from a session that's been left open on another device - someone at that device can access your account without needing your passcode. Checking active sessions every few weeks and terminating anything unrecognized takes about thirty seconds and catches account access problems that device-level settings can't address.

Enable Telegram's sensitive content blur on iOS for notification preview safety. On iPhone, go to Settings -> Notifications -> Show Previews -> Never (or "When Unlocked" as a compromise). This is a system-level setting that applies across apps, but it ensures that even if Telegram notifications bypass the app's own preview setting, iOS doesn't display content on the lock screen. The combination of Telegram's notification settings and iOS's system preview setting provides the strongest coverage.


What the Passcode Lock Can't Protect Against

The app passcode is a barrier against casual access by people who are physically present with your device. It's not designed to protect against someone who has administrative access to your phone - device management tools, forensic extraction software, or someone who knows both your device PIN and your Telegram passcode. For that level of threat, the encryption of the data itself matters more than the app lock.

Telegram's regular cloud-synced messages are stored on Telegram's servers, accessible to Telegram under certain circumstances. The app passcode prevents unauthorized opening of the app but doesn't change how Telegram handles server-side data. If your concern is platform-level access rather than physical device access, Secret Chats with their end-to-end encryption address a different layer of the problem.

Biometric authentication also has physical world limitations - someone with access to your hand or face while you're asleep or incapacitated can unlock the app using your biometric without knowing the code. If this is a concern in your specific situation, disabling biometric unlock and relying on the numeric code provides stronger protection in those scenarios.

Finally, the passcode doesn't affect how Telegram functions - calls still come through, notifications still arrive (subject to your notification settings), and any automation or bots you've set up continue running. The lock prevents reading and writing in the interface, not all app functionality.


Frequently Asked Questions

If I forget my Telegram passcode, can Telegram support help me reset it? No. Telegram's passcode is stored locally on your device and Telegram's servers have no record of it - there's no account-level recovery path. The only reset option is logging out of your Telegram account from within the lock screen (there's usually a "Forgot Passcode?" option that initiates a logout), which clears local data and lets you log back in fresh. Your cloud-synced messages return when you log in again; secret chats and any locally stored data not in the cloud are permanently lost.

Does enabling passcode lock affect Telegram's ability to receive messages while the app is locked? No. The passcode lock only affects the app's visual interface - it doesn't interrupt Telegram's background processing. Messages continue to be received, notifications continue to fire (per your notification settings), bots continue to function, and all server-side activity continues normally. The lock prevents anyone from opening and reading the app interface; it doesn't pause your account's activity.

If someone force-closes Telegram and reopens it, does the passcode lock immediately activate? It depends on your auto-lock setting. If you've set auto-lock to "Lock Immediately" or "When App is Backgrounded," the passcode prompts immediately on reopen regardless of how the app was closed. If you've set a time-based interval (1 minute, 5 minutes, etc.), the app may reopen without the passcode if the interval hasn't elapsed. For the strongest protection, set auto-lock to its shortest option or use the manual lock feature before handing your phone to anyone.

Does the Telegram passcode lock protect me if someone has my phone's PIN and uses it to access my Telegram data from within the file system? No. The Telegram passcode locks the app's interface but doesn't encrypt the locally stored Telegram data on your device. Someone with physical device access and the ability to navigate the file system can potentially access Telegram's local database without going through the app at all. For protection at this level, full-device encryption (enabled by default on modern iOS and most Android devices) is what matters, combined with a strong device PIN. Telegram's passcode is a UI-level barrier, not a data-encryption barrier for local storage.

Can I use different passcodes for Telegram and my phone lock screen? Yes, they're completely independent. Your phone's lock screen PIN and Telegram's app passcode are separate - you can set them to different codes, and they don't affect each other. Many people use a biometric (fingerprint or Face ID) for their phone lock screen and a numeric passcode for Telegram specifically, which creates a two-factor barrier for the app: the biometric to get into the phone, and the code to get into Telegram.


What To Verify Before You Finish

A good finish looks like this: the privacy behavior is clear in a real conversation and you know what the other person will still be able to notice. Before moving on, do a small real-world test: try the setting with a trusted contact or secondary device, then compare the visible profile, notification, or message state from both sides.

If someone can still see something you expected to hide, the most likely explanation is that the feature protects only a specific layer of privacy and does not control screenshots, saved media, group history, forwarded content, or old notifications. In that case, use the troubleshooting or limitation section above first, because repeating the same taps usually hides the real cause.


Related Guides

Read next: Use Telegram secret chats | Find Telegram groups | Stop spam on Telegram


Final Thoughts

The two-minute setup time for Telegram's passcode lock has an outsized return - it closes the gap between "my phone is locked" and "my Telegram is private," which are meaningfully different things. Set the auto-lock to a short interval, enable biometrics for convenience, and address the notification preview setting while you're at it. Those three things together give you the complete picture.