TDATA, .session et .json : ce que vous avez réellement reçu
Vous avez acheté un compte et reçu un dossier, ou une paire de fichiers, sans aucun mot de passe nulle part. Voici ce que chacun représente sur le disque, quels outils les lisent, ce que vous pouvez vérifier avant de leur faire confiance, et pourquoi la conversion entre eux n'est pas toujours possible.
Avery BennettThe archive opens and there is a folder called tdata, or a .session file sitting next to a .json. No username, no password, nothing that looks like credentials. The first instinct is that the seller sent the wrong thing.
They almost certainly did not. Around eighty per cent of Telegram listings deliver this way, because a Telegram account in this market is normally handed over as a live session rather than as a login.
What each one is on disk
- TDATA is a directory, not a file. It is where Telegram Desktop keeps its local state, including the authorisation that makes the client open already signed in. You are receiving a copy of that directory. Inside you will find files with names like
key_dataand a subdirectory whose name is a long hex string; that structure is normal and you should not rearrange it. - A .session file is a small SQLite database. It holds the authorisation key and the datacentre address the session was established against. Libraries such as Telethon and Pyrogram read this directly and connect without a login step.
- The .json beside it is plain text metadata: the API id and hash the session was created under, usually the device model, app version and platform string as well. Open it in any text editor. It authorises nothing on its own.
Which one your tool needs, and why it matters more than it sounds
These are not interchangeable and choosing wrong is the most common way to waste money here.
- Telegram Desktop wants TDATA. You close the client, replace its data directory, reopen it.
- Telethon, Pyrogram and tools built on them want the
.sessionfile, and most want the JSON too so they can present the same API identity the session was created with. - Mobile clients want neither. There is no supported way to import either format into a phone app, which is worth knowing before you buy for a phone workflow.
There is no price difference between the formats on this shelf, so there is nothing to gain by compromising. Buy the one your tool reads.
Converting between them
Converter tools exist and this is one of the most searched things about TDATA, so it is worth being precise. Extracting a usable session from a TDATA directory is the direction that generally works, because the authorisation key is there to be read. The reverse, building a working TDATA directory from a session file, is more fragile, because a desktop installation expects a good deal of local state beyond the key itself.
Two cautions that matter more than the mechanics. Conversion tools take your authorisation key as input, which means running an unfamiliar one is handing over the account, so treat that choice the way you would treat any credential. And an account can generally hold several live sessions at once, so converting does not usually invalidate the original; whoever else has a copy still has one.
What to check before you trust the files
Three checks, in this order, and all of them fit inside a twelve-hour warranty window:
- Completeness. A TDATA directory should not be a handful of stray files, and neither a
.sessionnor a.jsonshould be zero bytes. Open the JSON and confirm it actually contains an API id and hash rather than empty fields. - That it connects, in the tool you intend to use, from a clean environment. A virtual machine or a separate profile is worth the two minutes, because it keeps the test from mixing with anything else you have signed in.
- The active sessions list. This is the check people skip and it is the important one. Once you are in, look at the list of authorised devices. It tells you who else is currently holding this account, which is a fact about your purchase you cannot learn any other way.
The conflict problem, which is really a timing problem
A copy of a session can be used from more than one place. If the seller or a previous buyer still has the same files loaded somewhere, both of you are signed in simultaneously, and your activity may trigger security prompts or push someone else's client off.
Nothing in the file format prevents this, and the obvious response is not available. Telegram will not let a session log out any other session until it has itself been signed in for twenty-four hours, and it refuses with an error saying so. The refusal covers ending one device, ending all the others, and setting the session lifetime, so you cannot even ask for a short expiry and let the other copies lapse on their own.
That is worth sitting with, because it inverts the usual advice. The warranty window on this shelf is twelve hours at the median, so on most listings the moment you can finally clear the strangers out arrives after the moment you could still raise a claim. Speed does not solve it. Nothing solves it.
What you can do on the first day is two things, and they are the ones worth planning around. Read the device list and record what is in it, because that record is your evidence while the window is still open and it costs a minute. Then change the two-step password and set your own recovery address, which has no waiting period attached. That will not evict a copy that is already loaded somewhere, but it does stop another one being added, which is the half of the problem you can actually close. Clearing the list itself is a job for the following day.
Why there is no password
Because there is nothing to type. A session is an already-completed authorisation, which is why no code arrives on a phone when you import one. It also means the phone number attached to the account is a separate question: about thirty-five per cent of listings are marked SMS-verified, which tells you a number was used at registration, not that it is reachable now. If Telegram asks for a code later, that number decides whether you can answer.
Similarly, a two-factor password is a separate field again. It is set on just under sixty per cent of listings, and where it is set you need whatever the seller passes you in order to change it.
Current stock with the format tags filterable is on the Telegram accounts shelf. The wider buying guide covers what the other listing fields mean.
Frequently Asked Questions
Parce qu’un compte Telegram est généralement cédé sous forme de session active plutôt que d’identifiants de connexion, et environ quatre-vingts pour cent des annonces fonctionnent ainsi. Une session est une autorisation déjà établie, c’est pourquoi il n’y a rien à saisir et aucun code n’arrive sur le téléphone lors de son importation.
Il s'agit d'une petite base de données SQLite qui contient la clé d'autorisation et l'adresse du datacentre avec lequel la session a été établie. Des bibliothèques comme Telethon et Pyrogram la lisent directement. Le fichier .json à côté est un texte brut distinct qui contient l'ID API et le hash sous lesquels la session a été créée, ainsi que les détails de l'appareil, et il n'autorise rien à lui seul.
Extraire une session depuis TDATA est la direction qui fonctionne généralement, car la clé est là pour être lue. Aller dans l’autre sens est fragile, car une installation de bureau attend beaucoup d’état local au-delà de la clé. Deux précautions comptent plus que la mécanique : un convertisseur prend votre clé d’autorisation en entrée, donc en exécuter un inconnu revient à remettre le compte, et la conversion n’invalide pas la copie d’origine.
Non. Il n’existe aucun moyen pris en charge pour intégrer l’un ou l’autre format dans un client mobile. Si votre flux de travail se fait sur mobile, mieux vaut vérifier ce point avant d’acheter plutôt qu’après, car le choix du format est la raison la plus courante de se retrouver avec un compte inutilisable.
Consultez la liste des appareils autorisés dès que vous êtes connecté. Une session peut être utilisée depuis plusieurs endroits à la fois, donc si le vendeur ou un acheteur précédent en a encore une copie chargée, cette liste est le seul endroit où cela apparaît. Notez ce que vous trouvez pendant que la fenêtre de garantie est ouverte, car cette note constitue votre preuve. La suppression de ces sessions est une étape distincte et n'est pas encore disponible.
Telegram bloque la déconnexion de toute autre session tant que la session en cours n’a pas été active pendant vingt-quatre heures, et refuse avec une erreur qui le dit explicitement. Mettre fin à un appareil, à tous, ou définir une durée de session plus courte sont toutes des options couvertes, donc il n’y a pas de moyen détourné. Avec une garantie médiane de douze heures sur ce rayon, cette étape tombe généralement après la fermeture de votre fenêtre de réclamation, c’est pourquoi lire et noter la liste tôt est ce qui compte vraiment.
Intégrité, puis connexion, puis la liste des appareils. Vérifiez que rien ne fait zéro octet et que le JSON contient bien un identifiant et un hash d’API, connectez-vous depuis un environnement propre avec l’outil que vous comptez réellement utiliser, puis consultez les appareils autorisés. Ces trois étapes tiennent facilement dans une fenêtre de douze heures, ce qui correspond à la médiane ici.
Non, et c'est inhabituel. Le format n'est pas un attribut tarifé sur cette étagère, donc les annonces TDATA, session et JSON se situent au même niveau. Il n'y a donc aucune raison d'accepter un format que vos outils ne peuvent pas lire en échange d'un prix plus bas, car cet échange n'est pas proposé.

Avery Bennett
Consultant en médias sociaux et expert en growth hacking. Spécialisé dans la création de contenu viral et les stratégies de marketing d'influence pour les marques de toutes tailles.