# telegram_scan

> Menu-driven Python script that pulls user and chat details, members, media, links, contacts, locations and searches from Telegram chats.

Source: https://osinttools.io/tools/telegram-scan/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

- **Inputs:** Username, URL
- **Category:** Social media intelligence
- **Pricing:** Free, open source
- **Footprint:** passive (does not contact the target)
- **Account required:** yes, for full results
- **API:** no public API
- **Platforms:** Python CLI
- **Website:** https://github.com/bret99/telegram_scan
- **GitHub:** bret99/telegram_scan, 75 stars · Python · MIT · last commit 2026-05-15
- **Listed:** Dec 3
- **Last verified by an editor:** Dec 3, 2026

## What it does

telegram_scan is a set of Pyrogram scripts behind one numbered menu. Logged in with your own account, it fetches a user's profile, the chats you are in, a chat's details and member list, and, for a given chat, lists its photos, videos, voice notes, documents, animations, links, shared contacts and shared locations, with the sender and time of each. It can also search a chat for a term and list one user's messages in it.

Results print to the terminal and are appended to a text file, which makes it a quick way to inventory what has been shared in a group, such as every location or link, and who shared it. It is a small project with no export formats beyond plain text.

Footprint is passive: it reads its own index or third-party records and does not contact the target. An account is needed for full results. There is no public API.

## Features

- User and chat information
- Chat member lists
- Media, links and documents shared in a chat
- Shared contacts and locations with sender and time
- Search a chat for a term
- One user's messages in a chat

## Pros

- Simple menu, no configuration beyond API keys
- Each module is a short, readable script
- Lists who shared each item

## Cons

- Needs a Telegram api_id and api_hash and a logged-in account (use a research account)
- Plain text output only
- Member lists of channels need admin rights

## When to use it

- Use it when you want every location, link or document shared in a group listed with its sender and time.
- Use it when you need a quick look at one account's messages inside a group you are in.

## Quick start

Run from source (put api_id and api_hash in access_creds.py):

```
git clone https://github.com/bret99/telegram_scan.git
cd telegram_scan
python3 -m pip install pyrogram
python3 telegram_scan.py
```

## Alternatives

- [Telepathy](https://osinttools.io/tools/telepathy/): Python CLI for archiving public Telegram chats, collecting member lists and mapping forwards, by Prose Intelligence. (Open source · Username, URL · active · 1,274 GitHub stars)
- [Arctic Shift](https://osinttools.io/tools/arctic-shift/): Free Reddit archive with a web search for posts and comments by subreddit, author, date and text, plus an API and dumps. (Free · Username, URL · passive · 1,983 GitHub stars)
- [URS](https://osinttools.io/tools/urs/): Universal Reddit Scraper: command-line tool that archives subreddits, users and comment threads via the Reddit API. (Open source · Username, URL · passive · 1,049 GitHub stars)
- [Maltego Telegram](https://osinttools.io/tools/maltego-telegram/): Maltego transforms for Telegram that link channels, users, sticker pack owners, similar channels and deleted posts. (Open source · Username, URL · active · 607 GitHub stars)
- [Pyktok](https://osinttools.io/tools/pyktok/): Python module that downloads TikTok videos, metadata and comments from video, user and hashtag pages. (Open source · URL, Username · passive · 470 GitHub stars)
- [Telegram Tracker](https://osinttools.io/tools/telegram-tracker/): Python tool that collects public Telegram channels through the API and builds a message dataset and a channel network graph. (Open source · Username, URL · passive · 386 GitHub stars)

All alternatives to telegram_scan in one table: https://osinttools.io/tools/telegram-scan/alternatives/

## Change history

- 2026-12-03: Listed in the directory.

Feed of changes to telegram_scan: https://osinttools.io/tools/changes/feed.xml?tool=telegram-scan

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
