Useful
Sessions and tdata
How Telegram accounts are stored in the program.
Session#
A .session file is a login to a Telegram account. The program acts as the account through this file. There's often a .json file with the same name next to it, holding profile data. The program picks it up on its own.
A session file gives full access to the account: keep it like a password and don't share it with anyone. Turn on a cloud password for your accounts whenever possible.
tdata#
A tdata folder is a login to an account in the Telegram Desktop app.
Phone number login#
If you have no files, you can add an account by phone number: the program asks for a confirmation code, just like a normal Telegram login.
Account backup#
Sessions are stored in the accounts folder next to the program, with one folder for each account state. Back it up: a session file can't be recovered from the program, and reinstalling the system or cleaning the disk wipes it without warning.
Device fingerprint#
The program gives new sessions a plausible device: Android for sessions added by phone number, a computer for sessions built from tdata. Existing sessions are left as they are.