Telegram

What tdata is and how to sign in to Telegram on a computer and a phone

accsly editorial 15 min read
Node Proxy
In this piece
  1. Which format is in your archive?
  2. Five problems worth catching in the first few minutes
  3. How to sign in with tdata and move the account to your phone
The short answer
  1. Tdata is the folder where Telegram Desktop keeps your login. Put it next to the portable version of the app and the account opens with no phone number and no code.
  2. To move the account to your phone, sign in on the phone with the account's number. The code arrives not by SMS but in the «Telegram» chat on the computer where the account is already open. The whole thing takes about ten minutes.
  3. Set your own cloud password and a recovery email straight away. Then, after 24 hours, end the tdata session from your phone and sign the computer back in with a QR code, because the seller may have kept a copy of the folder.

After buying an account you usually get an archive with a folder full of cryptic files such as key_datas and D877F783D5D3EF8C. This is not some special seller format. It is the ordinary working folder of Telegram Desktop, Telegram's official computer app. Inside sits the authorization key, the record by which Telegram's servers recognise a device that is already signed in. That is why the app opens straight into the account when you give it someone else's folder, and no SMS is needed.

What is inside the tdata folder
Contents of the tdata folder The tdata folder holds key_datas, the key that encrypts everything else; D877F783D5D3EF8Cs, the authorization key for Telegram's servers; the D877F783D5D3EF8C folder with account settings; and user_data with the media cache. A copy of the folder opens the account without a code or SMS. The cloud password is not in the folder, only Telegram has it. A local passcode protects only the folder itself. tdata from the archive key_datas the key that encrypts everything else D877F783D5D3EF8Cs the login: Telegram authorization key D877F783D5D3EF8C/ account settings and the file map user_data/ cache: photos, stickers, chat files REMEMBER A copy of this folder opens the account with no code or SMS. The cloud password is not in it: only Telegram's servers know it. A local passcode guards only the folder. Contents of the tdata folder The tdata folder holds key_datas, the encryption key; D877F783D5D3EF8Cs, the Telegram authorization key; the D877F783D5D3EF8C folder with account settings; and user_data with the cache. A copy of the folder opens the account without a code or SMS. The cloud password is not in the folder. A local passcode protects only the folder itself. tdata from the archive key_datas the key that encrypts everything else D877F783D5D3EF8Cs the login: Telegram authorization key D877F783D5D3EF8C/ account settings and the file map user_data/ cache: photos, stickers, chat files REMEMBER A copy of this folder opens the account with no code or SMS. The cloud password is not in it: only Telegram's servers know it. A local passcode guards only the folder.
One file here matters most, and it works like a house key. File names were checked against the Telegram Desktop source code. If one app holds several accounts, each extra account gets its own pair of files with a different 16-character name.

That leads to the main rule. Unless the folder has a local passcode, anyone with a copy can read your chats and write in your name. So do not upload tdata to online services or bots that promise to "check" or "fix" an account. You would be handing them exactly what you paid for.

01 · Format

Which format is in your archive?

Telegram account listings often say "tdata + session + json". If you are going to chat or run a channel yourself, the only thing you need from that bundle is the tdata folder. The other files are read by programs that talk to Telegram through its API, and the official apps cannot open them. Look at what is in your archive and find your case on the chart.

Your format and how to sign in
Chart: account format and how to sign in If the archive has a tdata folder, open it in Telegram Desktop on Windows, macOS or Linux, then sign in on the phone with a code. If it only has session and json files, the official apps cannot open them, so ask the seller for tdata. If you got a phone number and a link to the code, sign in to any Telegram app and set a cloud password and email right away. In every case you need your own cloud password, a recovery email and a check of the device list. In the archive? A tdata folder key_datas, D877F783… .session and .json files a format for programs A number and a code link the SIM stays with the seller Telegram Desktop on Windows, macOS or Linux, then a code to the phone Ask for tdata the official apps cannot open these files The Telegram app get the code from the link, set password and email at once ALWAYS your own cloud password · a recovery email · a check of «Devices» Chart: account format and how to sign in A tdata folder is opened in Telegram Desktop on a computer, then you sign in on the phone with a code. The official apps cannot open session and json files, so ask the seller for tdata. With a phone number and a code link you sign in to any Telegram app and set a cloud password and email at once. In every case you need your own cloud password, a recovery email and a check of the device list. In the archive? A tdata folder key_datas, D877F783… Telegram Desktop on the computer, then a code to the phone or .session and .json files a format for programs Ask for tdata the official apps cannot open these files or A number and a code link the SIM stays with the seller The Telegram app code from the link, password and email at once ALWAYS your own cloud password a recovery email a check of «Devices»
To use an account by hand you need a tdata folder or a code login. Session and json files only matter if you run a program that talks to Telegram through its API.

A tdata folder

The easiest format when a person will use the account. It opens on a computer in a minute and moves to a phone from there.

  • tdata folder
  • cloud password in a .txt, if set
  • sometimes a local passcode
Open it withTelegram Desktop for Windows, macOS or Linux

You need Telegram Desktop from desktop.telegram.org specifically. Telegram also makes a separate Mac app simply called "Telegram". That is a different client with its own way of storing data, and it will not read a tdata folder.

If the account has a cloud password, the seller puts it next to the folder in a text file. Save it right away. The folder itself does not contain it, and without it you cannot sign in on a phone or another computer. Accounts in this format are listed in the tdata and session catalog, with the format written right in the product name.

Session and json

This is the working format of programs that connect to Telegram through its API, such as scripts built on the Telethon library. The regular Telegram apps cannot open these files.

  • .session file
  • .json file
  • for programs, not people
Open it withnone of the official Telegram apps read this format

A .session file is a small SQLite database. It holds the same authorization key plus the address of the Telegram server, as the Telethon documentation describes. In the json file sellers record which device the account claimed to be when it signed in: the model, system and app versions, the language, and often the phone number and cloud password too. This is a seller convention rather than a Telegram standard, so the contents vary from seller to seller.

Bought only session and json, but planned to use the account in ordinary Telegram? Message the seller before the warranty runs out and ask for tdata or a code login. I would not run the files through third-party converters, because you would have to hand them the key to the account. And if you wanted a session for your own bot, you do not need an account at all: a bot runs on a token from Telegram, and I covered how to launch one in the guide to choosing a server for a Telegram bot.

Number and code

The seller gives you a phone number and a link where the login code appears. You sign in to the official app yourself, just as you would with your own account.

  • phone number
  • link to the code
  • cloud password, if set
Open it withany official Telegram app

Here the SIM card stays with the seller, and the code link only works for a limited time. If you ever get logged out of every device, you will not be able to sign back in by SMS. That is why in this format the cloud password and recovery email belong in the first few minutes, not "some time later".

02 · Check

Five problems worth catching in the first few minutes

Shop warranties are usually short, and the exact period is shown on the product card. Run through these checks as soon as you get the archive, while the seller still has to replace a bad account.

  1. The account will not open

    Telegram Desktop starts but asks for a phone number instead of showing chats. The key in the folder no longer works: the session was ended or the account was banned. Message the seller straight away.

    How to tell: right after you launch the app with the seller's folder, you see the login screen with a phone number field.
  2. No local passcode was supplied

    If the folder has a local passcode, the app will not even show the chat list without it. There is no way around it except logging out, and that throws away the tdata login too.

    How to tell: on launch the app shows a window with a single passcode field, and the archive has no passcode.
  3. An unknown cloud password

    The account opens on the computer, but after the code the phone asks for a password you were never given. Without it you cannot move the account to the phone or change its protection.

    How to tell: in Telegram Desktop, Settings → Privacy and Security shows Two-Step Verification as on, and there is no text file with the password in the archive.
  4. Other people's devices are still listed

    The seller's or previous owners' sessions can see every chat. On top of that, any of them can request a cloud password reset, and Telegram resets it after 7 days unless someone cancels the request.

    How to tell: Settings → Devices shows entries other than your computer, with devices and cities you do not recognise.
  5. A "clean" account that is spam-limited

    A limited account cannot message people who do not have it in their contacts. If it was sold as having no limits, ask for a replacement.

    How to tell: send /start to @SpamBot. If it replies that the account is limited, the account has a spam block.
03 · Sign in

How to sign in with tdata and move the account to your phone

Here is the whole route from the archive to an account that only you control. The first three steps happen on the computer, and after that you will need your phone.

From the folder to your phone
Order of moving the account from a computer to a phone First open tdata in Telegram Desktop and enter the local passcode if there is one. Five minutes later sign in on the phone with the number, the code arrives in the Telegram chat on the computer. At ten minutes set your own cloud password and email and end other sessions from the computer. After 24 hours end the tdata session from the phone and sign the computer back in with a QR code. 0 min 5 min 10 min after 24 h Computer Open tdata in Telegram Desktop, enter the passcode if there is one Phone Sign in with the number, the code arrives in «Telegram» on the computer Protect Your own cloud password and email, end other sessions from the computer A day later From the phone, end the tdata session, then sign the PC in by QR Order of moving the account from a computer to a phone First open tdata in Telegram Desktop. Then sign in on the phone with the number, the code arrives in the Telegram chat on the computer. Next set your own cloud password and email and end other sessions from the computer. After 24 hours end the tdata session from the phone and sign the computer back in with a QR code. 0 min · Computer Open tdata in Telegram Desktop and enter the passcode if there is one. 5 min · Phone Sign in with the number: the code arrives in «Telegram» on the PC. 10 min · Protect Your own cloud password and email, end other sessions from the PC. After 24 h End the tdata session from the phone, then sign the PC in with a QR code.
The one-day wait is Telegram's own protection, not our invention. A newly signed-in device cannot end other sessions for its first 24 hours, so the last step happens the next day.
  1. Download portable Telegram Desktop

    On Windows, get the Portable version from desktop.telegram.org and unpack it into a new, empty folder. The portable version keeps its data next to itself, so your personal account on this computer stays untouched.

  2. Put tdata next to the app

    On Windows, Telegram Desktop looks for the tdata folder in the same place as Telegram.exe. On macOS and Linux the data lives in a system folder in your user profile, so it is easier to start the app with the -workdir option. It points the app at a separate working folder, and you do not have to swap out your own account's data.

    # Windows, portable version
    D:\tg\account-1\Telegram.exe
    D:\tg\account-1\tdata\          # folder from the archive
    
    # where your own account lives (leave it alone)
    %APPDATA%\Telegram Desktop\tdata
    ~/Library/Application Support/Telegram Desktop/tdata
    ~/.local/share/TelegramDesktop/tdata
    
    # macOS: a separate working folder
    mkdir -p ~/tg/account-1 && cp -R tdata ~/tg/account-1/
    /Applications/Telegram.app/Contents/MacOS/Telegram -workdir ~/tg/account-1
    
    # Linux: the same idea
    telegram-desktop -workdir ~/tg/account-1
  3. Launch the app and check the account

    If the app asks for a local passcode, enter the one from the archive. If your chats appear, the login works. Now go through the five problems above while the warranty is still running.

  4. Sign in on your phone

    Install the official Telegram app and enter the account's number. The code will not come by SMS but to the «Telegram» chat on the computer, because the account is already open there (this is described in Telegram's FAQ). If a cloud password is set, the app will ask for it after the code. Do not log out on the computer until the phone is in, since right now it is your only way into the account.

  5. Set your own cloud password and email

    In the app, open Settings → Privacy and Security → Two-Step Verification. If there was a password, change it to your own; if there was none, create one. On the same screen add a recovery email, because it is the only way to recover a forgotten password without the week-long wait. Use a mailbox you are sure you can always get into.

  6. End other sessions from the computer

    In Telegram Desktop, open Settings → Devices and end every entry except this computer and your phone. The phone cannot do this yet, because Telegram does not let a session younger than a day end other sessions. The tdata session is usually older. If Telegram still refuses, the seller created it recently, and you will have to wait.

  7. A day later, end the tdata session itself

    The seller may have kept a copy of the folder, and to Telegram that copy is the very same session you have on your computer. So 24 hours after signing in on the phone, use the phone to end the Telegram Desktop session. Then choose QR code login on the computer and scan it with the phone under Settings → Devices. The computer gets a fresh key that only you know about.

Do you still need the old tdata folder? No. After step seven it no longer opens anything, and you can delete it along with the archive.

Do not change the order of steps 5 to 7. Until a cloud password is set, anyone holding a copy of the folder can set one first, and then you will not be able to change the account's protection.

The tdata paths and the -workdir option were checked against the Telegram Desktop source code, and the rules for codes, cloud passwords and sessions come from telegram.org and core.telegram.org documentation as of 26.10.2026. Menu names may differ slightly between app versions.

Share this piece Telegram

Read next