telegram_scan is an advanced, highly extensible OSINT (Open Source Intelligence) and reconnaissance framework designed for deep analysis of Telegram users, public/private channels, and group chats. Equipped with 16 specialized modules, it enables security researchers, threat intelligence analysts, and data scientists to extract, correlate, and audit metadata, message history, and user activity profiles.
The architecture is entirely decoupled, making it effortless for developers to build and integrate custom assessment modules.
The framework incorporates 16 native modules engineered for comprehensive Telegram data harvesting:
- User Profiling: Extract unique IDs, historical usernames, bio metadata, and profile photo changes.
- Chat & Channel Enumeration: Audit group member lists, administrator privileges, and restriction statuses.
- Activity & Content Scraping: Analyze message velocity, forward patterns, and extract embedded metadata.
- Extensible Architecture: Programmatic design allowing seamless creation of custom modular plug-ins.
To interact with the Telegram MTProto API, you must obtain a development API ID and Hash:
- Authenticate at the official Telegram Development Portal.
- Navigate to API development tools.
- Create a new application entry to generate your
api_idandapi_hash.
This framework leverages the high-performance MTProto library pyrogram.
-
Clone the Repository:
git clone [https://github.com/bret99/telegram_scan.git](https://github.com/bret99/telegram_scan.git) cd telegram_scan -
Install Required Packages:
python3 -m pip install pyrogram
-
Configure Access Credentials: Copy the provided template configuration file and populate it with your Telegram API keys:
cp access_creds.py.template access_creds.py
Open
access_creds.pyand input your credentials:api_id = "your_api_id" api_hash = "your_api_hash"
Run the primary entry point to launch the interactive framework shell. Upon the first execution, pyrogram will prompt you to enter your phone number and authorization code (or 2FA password) to generate a secure local session file (.session).
python3 telegram_scan.py
⚠️ Security Notice: Never commit your generated.sessionfiles oraccess_creds.pyto public repositories. These files grant full programmatic access to your Telegram account.
If this tool helps protect your infrastructure, consider supporting the developer!
| Asset | Network | Address |
|---|---|---|
| BTC | Bitcoin | bc1qjwl80sv06xj2yhumn6k6xemchryem923wwts5x |
| USDT / ETH | Ethereum (ERC20) | 0xc01b996c7b08ccfad463f27e54f1e74e6ac6f9ff |
| USDT / SOL | Solana | D7a5CdLaDwkKehnH82y6VJEF3hADWuupuhWCXecHvEnt |
| TON | TON Network | UQBhPLwdFiJdh6sZ96sZfxrxD9Lu6NFtaUecWeoHSM-EPc0P |
| LTC | Litecoin | ltc1qkm58ks5kuc64rjwd74sfalc5xsn7h6sr4vt45w |
| SOL | Solana | D7a5CdLaDwkKehnH82y6VJEF3hADWuupuhWCXecHvEnt |
📜 License
This project is licensed under the MIT License - see the LICENSE file for details.