How to Use Telegram Sessions
What is a Session
To be honest, the term "session" is a typical technical term. But since so many people ask about it.
Before discussing this, you need to understand the basic principles of Telegram login.
See the principle explanation section in this article
In short, a "session" refers to a login session of an account on a specific device. In English, it's called a session
. In the app, it shows as: Active Sessions
How to Use Sessions
Format Categories
Currently popular session formats are:
- Telethon: Most popular. (file extension: session)
- Pyrogram: Elegant library, but not as popular as above. (file extension: session)
- tdata: Windows Telegram client format. (a directory called tdata)
- API code reception format: See here
- Keys: Required by some software, usually telethon and pyrogram string_session format.
- json: Required by some software. Usually contains the above, or exposed auth_key
- web_auth_key: Login method for official Telegram web client. Usually a string starting with "982FA...". Can be filled in with auth_key obtained from session file.
PS: Apart from official tdata, pyrogram has the most elegant session format design... PPS: In reality, Telethon format has basically dominated the market. Fully demonstrates the inevitability of bad money driving out good.
Usage Methods
-
Telethon
andpyrogram
sessions need code or released code to use. See here This program I wrote uses Telethon. Many similar products in the market also use this format. -
For tdata format, generally download an official Telegram version, run and close it. Then overwrite with your tdata. See here
-
For API code reception, just buy a set from me. If you have few accounts, I can help host them for free.
-
For keys: These are generally converted to sessions for use. Tool see here
-
For json: Each vendor's format is different. If you really need to use it, check which vendor's format it is. Using highly flexible json for this is very troublesome.
-
For web auth key: Open browser, F12, write to localStorage.
Afterword
There are too many open source Telegram clients. The Telethon
and pyrogram
mentioned here are Python libraries.
Those using Telegram accounts for airdrop farming mostly use web.
If you don't understand, just ask in the group.