I'm archiving this repo. Telegram moderation has become stricter, making invites impossible and parsing difficult. So please stop writing to me about the project's functionality. I wrote the code a long time ago, at the very beginning of my career as a software engineer, and now I feel that it smells. It's another reason why I made a decision to archive this repo - I have no interest in circumventing the restrictions of this "messenger for scam". If you want to try your luck at bypassing Telegram's algorithms, you can fork the project. Bye for now.
- .session files can now be used for authentication. Store them into the directory
- Added the ability to parse UserIDs
- Added phone numbers -> .session converter
Before you begin, you need to find your API_ID and API_HASH tokens. Go to https://my.telegram.org/apps and log in. Select API Development Tools.
In the next window, fill in the “App title” and “Short name” fields. Select “desktop”.
Click “Create Application” and, in the window that appears, make a note of the API_ID and API_HASH. The API_ID and API_HASH work with any account. You can use the API_ID and API_HASH from a third-party account.
Windows
- Download Python 3.12 from https://www.python.org/ftp/python/3.12.0/python-3.12.0-amd64.exe
- During installation, be sure to check the “Add to PATH” box

- Open the command prompt (press the “Win” key + the “R” key, then enter the command
cmd) - Use the
cdcommand to navigate to the parser directory. Example:cd C:Users/Keqy/programs/repos/telegram-parser-v2.0 - Create a virtual environment with
py -m venv venv, then activate it with.\venv\Scripts\Activate - Install Telethon with
pip install telethon
Linux
- Open the terminal and update the packages with
sudo apt update - Install Python and Git:
sudo apt install python3 python3-pip git -y - Clone the repository:
git clone https://github.com/Keqy/telegram-parser-v2.0/ cdinto the parser directory.- Create a virtual environment:
py -m venv venv, then activate it:.\venv\bin\Activate
The parser settings will open the first time you run the program.
Enter your API_ID. It contains only numbers. No spaces
Enter your API_HASH. API_HASH contains only numbers and letters of the Latin alphabet. No spaces
Here, in steps 3 and 4, you can enable or disable the username/user ID parsing feature. By default, both are parsed.
CONVERTER
The converter is located in the settings under Add Userbot Account. The Telegram account’s phone number is fed into the converter. A .session file is created in the project directory for quick userbot authorization. You can also add your own .session files to the root folder and use them for parsing or inviting users.
The converter will not work if the API_ID or API_HASH is invalid or entered incorrectly A new API_ID and API_HASH are NOT required for each new account
The settings are stored in options.txt in the project directory.
After configuring the settings, enter the Latin character e. In the parser, this is used to exit.
After exiting the settings, the main menu will open.
In the parsing window, select the account that is a member of the groups you want to parse.
The matched usernames and user IDs will be stored in the directory in the files usernames.txt and userids.txt.
In the invitation window, select an account that is a member of the group you want to invite. Then enter the group name.






