Skip to content

Keqy/telegram-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

telegram-parser -- Telegram Parser and Inviter

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.

Updates

v2.0

  • .session files can now be used for authentication. Store them into the directory
  • Added the ability to parse UserIDs
  • Added phone numbers -> .session converter

1. Preparation

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.

12591615102022_5c20dcbcfbab07ab6c2df7e27444d5ac2afca569

In the next window, fill in the “App title” and “Short name” fields. Select “desktop”.

gfbauf

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.

2. Environment Configuration

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 hgai
  • Open the command prompt (press the “Win” key + the “R” key, then enter the command cmd)
  • Use the cd command 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/
  • cd into the parser directory.
  • Create a virtual environment: py -m venv venv, then activate it: .\venv\bin\Activate

3. Usage

The parser settings will open the first time you run the program.

image

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.

image

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.

image

Parsing

In the parsing window, select the account that is a member of the groups you want to parse.

image

image

The matched usernames and user IDs will be stored in the directory in the files usernames.txt and userids.txt.

Inviting

In the invitation window, select an account that is a member of the group you want to invite. Then enter the group name.

About

Самый удобный телеграмм парсер и инвайтер. Больше в README

Topics

Resources

License

Stars

Watchers

Forks

Languages