Turn on Telegram's passcode lock on each device, pick an auto-lock time, use fingerprint or Face ID, and know what happens if you forget the code.
To lock Telegram with a passcode, open Settings, go to Privacy and Security and choose Passcode Lock (Passcode & Face ID or Touch ID on iPhone, Local passcode on Telegram Desktop), then set a code and an auto-lock time. From then on, opening Telegram on that device asks for the code before showing any chats. The passcode only protects the device you set it on; it is not your account password and it is not shared with your other devices.
This guide shows the setup on Android, iPhone, Desktop and Web, explains every option on the passcode screen, and covers the one thing to know before you start: what happens if you forget it.
The passcode lock is a door in front of the Telegram app on one device. It is useful and simple, and it is often confused with other security features. Getting the difference clear first avoids false confidence.
Think of three layers:
The first two are local. The third is about your account everywhere. A well-protected account uses all three.
A lock is only as good as the code behind it. The passcode protects against people physically near you, so think about who those people are and what they could guess or see.
If biometrics handle everyday unlocking, a longer password costs you little, because you only type it occasionally.
Codes are most often learned by watching someone type them. If you unlock Telegram in public or in front of family, use biometrics, or angle the screen. A long password typed in front of the same person every day is weaker than a short PIN they have never seen.
Because a forgotten passcode means logging in again, store it somewhere you trust, such as a password manager. Do not keep it in Telegram's own Saved Messages, which you cannot open while locked.
After you enable it, a small padlock appears near the top of the chat list. Tap it to lock Telegram immediately.
With the passcode on, you can lock the app by tapping the padlock that appears at the top of the chat list.
On Windows, macOS and Linux, the feature is called a local passcode.
To lock manually, look for the lock option in the main menu or near the search field. Telegram Desktop also supports a keyboard shortcut for locking (Ctrl+L on Windows and Linux in many versions); if it does nothing, use the menu.
On Desktop, the local passcode is also used to protect the data Telegram keeps on the computer, which is one more reason nobody can recover it for you. When Telegram Desktop is locked, the window shows only a passcode field. Nothing about your chats is visible.
Telegram Web runs in your browser, and its options are different from the installed apps. Some versions offer a passcode under Privacy and Security; if yours does, the setup is similar to Desktop. If not, protect a web session another way:
Our guide to Telegram Desktop vs Web vs mobile explains other differences between the versions.
Once a passcode is on, the passcode screen shows several settings. Names vary a little between platforms, but the ideas are the same.
This decides how long Telegram waits after you leave the app before it locks itself. Short periods, such as a minute, are the most secure: the app locks almost every time you switch away. Longer periods, such as an hour, are more convenient but leave a window where someone could open it.
A practical way to choose:
On devices with biometrics, you can let your fingerprint or face unlock Telegram instead of typing the code each time. This makes a short auto-lock period comfortable to live with.
The passcode is still the master key. If biometrics fail, or the device asks for the code after a restart, you will need to type it. Biometrics on the device are controlled by your phone, so anyone whose fingerprint or face is enrolled on the phone may be able to unlock Telegram too. If you share a phone with someone who has a fingerprint enrolled, turn this option off.
When you switch apps, your phone shows a preview of each recent app. With a passcode on, Telegram can hide its preview so your last open chat is not visible there.
The padlock icon at the top of the chat list (mobile) or the lock option in the menu (Desktop) locks the app immediately, regardless of the auto-lock timer. It is the quickest way to hand your phone to someone after showing them something.
There is no reset by email and no way for Telegram support to unlock it, because the passcode never leaves your device. The way back is to remove Telegram's local data and log in again.
The lock screen of Telegram Desktop offers a way to log out of the app. Use it, then log in again by phone number or QR code. If your version does not offer that, uninstalling and reinstalling Telegram Desktop has the same effect.
The login code arrives in Telegram on your other logged-in devices if you have any, or by SMS. Do not give that code to anyone. See never share your Telegram login code for why.
Turning it off removes the lock immediately on that device. Other devices keep their own setting.
A locked Telegram can still show message previews in notifications, because notifications are handled by the phone or computer, not by the locked app. If the goal is to keep messages private from people near your device, adjust notifications too:
Without this step, a passcode protects your chats from someone opening the app but not from someone reading your lock screen.
If you use more than one Telegram account in the same app, the passcode applies to the whole app on that device, not to a single account. Unlocking it opens all of your accounts there. If you need one account more private than another on the same phone, the passcode alone cannot do that; consider keeping the private account only on a device that others never use. Our guide to multiple accounts explains how accounts are separated.
The passcode is all-or-nothing: the app is either locked or open. If you share a device and want more control, combine it with other tools.
Many Android phones and tablets, and every desktop operating system, support separate user profiles. Each profile has its own apps and data. If a tablet is shared by a family, giving each person their own profile with their own Telegram is cleaner than one Telegram behind one passcode.
Archiving moves chats out of the main list, and folders let you choose which chats appear on the first screen. Neither is a security feature, because anyone with the app open can look in the archive. They are useful for keeping the screen tidy when you show someone a specific chat. Our guides to pinning, muting and archiving and folders explain both.
If the concern is that old messages exist at all, set an auto-delete timer on sensitive chats so they disappear after a period, or use a secret chat with a self-destruct timer. See auto-delete messages and secret chats explained. These reduce what anyone could find, passcode or not.
Telegram can save photos and videos to your phone's gallery automatically. Those copies are outside Telegram, so the passcode does not protect them. If you use a passcode for privacy, check Telegram's data and storage settings and turn off automatic saving to the gallery for the chats that matter. Our guide to stopping automatic downloads and saving covers the setting.
Locking the app does not switch it off. Knowing what continues in the background helps you set the other options correctly.
In short, the lock controls who can look at Telegram on that screen. It does not change how your account behaves for the people you talk to.
If you are setting a passcode because you want Telegram to be safer in general, these steps together cover the common risks:
The passcode is stored only on the device, so it does not travel with your account.
A good habit is to add "set Telegram passcode" to the list of things you do on any new device, alongside your phone's own screen lock.
A parent sets a numeric PIN, turns on fingerprint unlock and sets auto-lock to one minute. They hand the phone over for games; when the child opens Telegram, it asks for the code. Because the child's fingerprint is not enrolled on the phone, biometrics do not help them. The parent also hides message previews on the lock screen.
An employee uses Telegram Desktop at work. They set a local passcode and auto-lock after a short time away, and press the lock shortcut when they leave the desk. If a colleague sits down at the unlocked computer, Telegram shows only the passcode field.
Someone sets a six-digit code late at night and cannot remember it the next day. They uninstall Telegram, reinstall it and log in with their number, the code sent to their laptop's Telegram Desktop and their two-step password. All their groups and chats reappear. One secret chat started on that phone is gone. They set a new passcode and write a hint somewhere safe.
A small shop keeps one phone at the counter for customer orders over Telegram, and three staff use it. A passcode known to all three keeps customers who pick up the phone out, but it does not separate the staff from each other. The owner sets a passcode, hides lock-screen previews and keeps their personal Telegram account on their own phone instead of adding it to the shop phone, because a passcode on a shared device opens every account in the app.
Someone travelling for work uses Telegram Desktop on a laptop that goes through hotel rooms and airport lounges. They set a local passcode with a short auto-lock, lock the laptop's own screen whenever they step away, and before a trip check the active sessions list so they know which devices should appear there. If the laptop is lost, they end its session from their phone.
A user sets a passcode because they are afraid of being hacked. That protects their phone from casual access, but the bigger risk to their account is someone logging in elsewhere with a stolen code. They also set two-step verification and add a recovery email, which is what actually blocks a remote login.
Look under Privacy and Security in Telegram's settings. On iPhone it is named after Face ID or Touch ID. On Desktop it is called Local passcode. If none appears, update Telegram.
Check that the biometric option is turned on inside Telegram's passcode settings and that biometrics are set up in the phone's own settings. After a restart, most devices require the code once before biometrics work again.
Check the auto-lock period. If it never locks, the period may be very long, or you may be switching away for less time than it allows. Locking manually with the padlock is always available.
The padlock only appears while a passcode is enabled. If you turned the passcode on and still do not see it, scroll the chat list to the very top, because on some versions it sits beside the title and hides when you scroll. Updating the app usually restores it. You can always rely on the auto-lock timer instead.
On Android, hiding app content in the task switcher can also block screenshots. Turn that option back on if you need screenshots, accepting that the app preview will be visible in recent apps.
Each device has its own passcode. Set one separately on the computer, or check whether you used a different code there.
No. The passcode is local to one device and only locks the app. The two-step password is stored with your account and is asked for when you log in on a new device.
No. The passcode never leaves your device, so nobody else can reset it. Reinstall the app or log out and back in.
Cloud chats are safe and return when you log in again. Secret chats on that device are lost.
No. It locks the whole app on that device. Telegram does not offer a separate lock for individual chats; if you want to keep certain chats out of view, archiving or folders can help with clutter but not with security.
On Android, hiding the app content in the task switcher can also block screenshots inside Telegram. On other platforms the passcode does not stop screenshots.
It stops a thief from opening Telegram on the phone. You should still end that phone's session from another device; see logging out of all devices.
Telegram's passcode lock puts a code in front of the app on one device. Turn it on under Privacy and Security on each phone and computer, choose an auto-lock period that matches how the device is used, and add fingerprint or face unlock to make short periods painless. Hide app content in the switcher and lock-screen previews if people near you could see them. The passcode cannot be recovered, so a forgotten code means logging in again and losing that device's secret chats. For protection against someone logging in remotely, pair it with two-step verification.
Ownership confirmed through our claim process — not an endorsement of their content.
Founder of Telegram.
The official Telegram on Telegram. Much recursion. Very Telegram. Wow.
Telegram Premium – a subscription that unlocks dozens of exclusive features.
Binance Official English Group Binance Official Chinese Group Binance English Announcements Binance Chinese Announcements
is a modern crypto news and research platform covering the latest developments across digital assets, markets, regulation, and blockchain technology.
Technical analysis & high-probability trade setups. Price action, market structure, risk control.
BlackBlock Markets exists to observe how capital moves before it becomes obvious.
This channel focuses exclusively on what shapes global finance. Macroeconomics, markets, liquidity, central banks.
Clear long & short signals for BTC, ETH & liquid altcoins. AI-backed analysis, real-time execution.