Skip to content

Telephasma is an OSINT-focused tool designed to automate the analysis of Telegram gift exchange behavior. It replaces manual profile-by-profile investigation by systematically correlating gifting patterns to identify channel owners and core actors through behavioral signals rather than exposed admin data.

License

Notifications You must be signed in to change notification settings

vxshellew/Telephasma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Telephasma - Telegram Gift Network Analyzer

Beta Python React AI Assisted Code

AI-assisted tools were used during backend and frontend development.

A powerful OSINT tool for analyzing Telegram gift-giving networks and channel ownership relationships. Telephasma scans Telegram groups/channels to discover users, map their gift transactions, and identify channel owners through bio analysis.

๐ŸŽฏ Features

  • User Discovery: Scan Telegram groups/channels to extract member profiles
  • Gift Chain Analysis: Track who sends gifts to whom, building relationship networks
  • Channel Owner Detection: Identify users who own channels/groups via bio parsing
  • Real-time Visualization: Interactive force-directed graph showing user relationships
  • Recursive Scanning: Follow gift chains to discover connected users
  • Multi-language UI: English and Turkish interface support

โš ๏ธ Important Notice

  • This tool interacts directly with Telegram APIs.
  • High-frequency scanning, aggressive recursion, or misuse may violate Telegramโ€™s anti-abuse policies and result in account bans.
  • Proceed with caution.

๐Ÿ“‹ Prerequisites

๐Ÿš€ Installation

๐ŸŽฏ Quick Start (Recommended)

Platform Command
๐ŸชŸ Windows Double-click start.bat
๐Ÿง Linux / ๐ŸŽ Mac chmod +x start.sh && ./start.sh

This will automatically:

  • โœ… Create Python virtual environment
  • โœ… Install all dependencies (backend + frontend)
  • โœ… Start both servers
  • โœ… Open your browser

Manual Installation

Click to expand manual installation steps

Backend Setup

cd backend
python -m venv .venv

# Windows
.venv\Scripts\activate

# Linux/Mac
source .venv/bin/activate

pip install -r requirements.txt

Frontend Setup

cd frontend
npm install
โš ๏ธ Windows PowerShell Error Fix

If you see this error when running npm install:

npm : File C:\Program Files\nodejs\npm.ps1 cannot be loaded because running scripts is disabled on this system.

Solution 1: Use CMD instead of PowerShell (Easiest)

# Open CMD (Command Prompt) instead of PowerShell, then:
cd frontend
npm install

Solution 2: Enable script execution in PowerShell (Run as Administrator)

# Open PowerShell as Administrator, then run:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

# After this, you can run npm commands normally

โš™๏ธ Configuration

On first run, you will be prompted to enter:

  1. API ID: Your Telegram API ID (get from https://my.telegram.org)
  2. API Hash: Your Telegram API Hash
  3. Phone Number: Your Telegram phone number (with country code, e.g., +1234567890)
  4. Verification Code: Login code sent to your Telegram app

Note: Your credentials are stored locally and never shared. Each user must provide their own Telegram API credentials.

๐ŸŽฎ Running the Application

Start Backend

cd backend
python main.py
# Server runs on http://localhost:8000

Start Frontend

cd frontend
npm run dev
# UI runs on http://localhost:5173

Open your browser and navigate to http://localhost:5173

๐Ÿ“– How It Works

1. Authentication

The backend connects to Telegram using the Telethon library. Your session is saved locally for future use.

2. Scanning Process

Target Group/Channel
        โ”‚
        โ–ผ
  Get Members List
        โ”‚
        โ–ผ
  For Each Member:
        โ”œโ”€โ”€โ–บ Parse Bio (extract channel links)
        โ”œโ”€โ”€โ–บ Get Gifts Received
        โ””โ”€โ”€โ–บ If gifts found:
                  โ”‚
                  โ–ผ
           Get Gift Senders
                  โ”‚
                  โ–ผ
           Recursively Scan Senders

3. Data Classification

  • TARGET: Users from the initial scan target
  • DISCOVERED: Users found through gift chains who own channels
  • CHANNEL: Telegram channels/groups extracted from user bios

4. Network Visualization

The Network Map uses a D3 force-directed graph to display:

  • Circles: User nodes (red = target, cyan = discovered)
  • Squares: Channel nodes (purple)
  • Lines: Gift relationships and channel ownership connections

๐Ÿ–ผ๏ธ Screenshots

Login Screen

Login Screen

Discovery Tab

Discovery Tab

Live Scan Tab

Live Scan Tab

Results Tab

Results Tab

Network Visualization

Network Visualization The interactive network map shows relationships between users and channels with real-time updates during scanning.

Results Panel

Detailed user information including channels owned, gifts sent/received, and bio content.

โš ๏ธ Disclaimer

This tool is intended for educational and research purposes only.

  • Use responsibly and in accordance with Telegram's Terms of Service
  • Do not use for harassment, stalking, or any malicious purposes
  • The developers are not responsible for any misuse of this tool
  • Respect user privacy and data protection regulations

๐Ÿ“„ License

MIT License - See LICENSE file for details.


Made with โค๏ธ for OSINT researchers

About

Telephasma is an OSINT-focused tool designed to automate the analysis of Telegram gift exchange behavior. It replaces manual profile-by-profile investigation by systematically correlating gifting patterns to identify channel owners and core actors through behavioral signals rather than exposed admin data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published