Telegram Search
Effortlessly export, back up, and fuzzy search your Telegram chat history, with vector semantic search and AI summaries.
- Source repo
- groupultra/telegram-search
- Stars
- ★ 4.2k
- Last updated
- 14d ago v1.8.0
- FARS reviewed
- Nov 07, 2026 +2 new
- License
- AGPL-3.0
- Primary language
- TypeScript
- FA score
- 66/100 · Some gaps
At a glance
- How it runs
- Works with
- Platform-specific
- Cost
- Free software; you pay for model usage
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- Users who need to find historical information in Telegram chats but find native search lacking for Chinese or other languages.
- Not a fit if
- Users unwilling to register a Telegram API ID and Hash
- Individuals avoiding Docker, database, or MinIO infrastructure
- Website
- search.lingogram.app ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-19latest release v1.8.0 (2026-11-19)+0.6 ★/day over 7 days
- Source review
- 66/100 · Some gaps
What does this agent do, and when should you use it?
Telegram Search is an open-source tool for exporting, backing up, and searching Telegram chat histories. It offers a web interface, a Telegram bot, and a local-first CLI (Agent mode). Messages are automatically tokenized and vector-embedded during export, enabling multilingual fuzzy matching and image semantic search. Deployment options include Docker Compose or pure browser mode. The project also provides RAG-based Q&A, unread message summaries, and bot-driven search.
Telegram Search fetches user-authorized chat history via the Telegram API, persists messages to PGlite or PostgreSQL, and generates vector embeddings and token indexes for each message. The web interface (default port 3333) allows searching, browsing, and exporting messages. The CLI tool supports commands like configure, login, chats list, sync, and export, outputting JSON. Additionally, a Telegram bot enables search and deep-link navigation. AI embeddings enable image semantic search.
- Users who need to find historical information in Telegram chats but find native search lacking for Chinese or other languages.
- Individuals or teams needing to back up Telegram chats and export date-filtered JSONL files.
- Users who want to converse with an AI based on their chat history to get RAG-based answers.
- Active users who want a one-click summary of unread messages to quickly catch up on group or channel activity.
- Developers who want to integrate Telegram messages with vector databases for knowledge graph building or further analysis.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
docker run -d --name telegram-search -p 3333:3333 ghcr.io/groupultra/telegram-search:latest
- Config files
.env.example.envdocker-compose.yml- Install notes cover
- Docker
How do you install or deploy this agent?
- Clone the repo:
git clone https://github.com/groupultra/telegram-search.git; 2. Install dependencies:pnpm install; 3. Copy env:cp .env.example .env; 4. Use Docker Compose: download docker-compose.yml, .env.example, and init.sql, then rundocker compose -f docker-compose.yml up -d. Or use Docker image:docker run -d --name telegram-search -p 3333:3333 ghcr.io/groupultra/telegram-search:latest. For development, runpnpm run dev(browser-only) orpnpm run server:devandpnpm run web:dev(server mode).
How do you use this agent?
- Access the web UI (e.g., http://localhost:3333) and log in with your Telegram API ID and Hash. 2. Authorize and start syncing messages. 3. Use the search bar for keyword or semantic vector search. 4. For CLI, first build the packages:
pnpm run build:packages && pnpm -F @tg-search/cli build. Then configure a profile:pnpm cli --profile work profile configure --apiId 123456 --apiHash abcdef, log in:pnpm cli --profile work auth login, list chats, sync with explicit takeout, and export data.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
FARS trust-control audit
- confirmation before acting
What are this agent's strengths and limitations?
- Supports PGlite and PostgreSQL, offering flexible data storage options.
- Built-in vector embeddings and fuzzy search provide accurate multilingual retrieval.
- Three interaction modes: web UI, CLI, and Telegram bot.
- Image semantic search enables text-to-image queries.
- AI features include unread message summaries and RAG-based Q&A.
- Requires users to supply Telegram API ID and Hash, involving third-party credential setup.
- Depends on external AI embedding models and LLM APIs, incurring potential costs and privacy concerns.
- Deployment requires Docker or Node.js, posing a technical barrier.
- CLI sync operations are strictly gated by user authorization, adding complexity.
- Media storage depends on MinIO, increasing infrastructure management overhead.
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Telegram Search This agent | 66 · Some gaps | Self-hosted serviceFree + model costs | ★ 4.2k | 14d ago | TypeScript | — |
| CocoIndex | 61 · Some gaps | Library / SDKFree + model costs | ★ 12k | 5d ago | Rust | — |
| Teable - AI Spreadsheet for Business | 47 · Major gaps | Self-hosted serviceFreemium | ★ 22k | 1d ago | TypeScript | — |
| DeepEye | 65 · Some gaps | — | ★ 275 | 5mo ago | Python | — |
How does FollowAgents rate this agent?
Why each dimension lost points
The CLI skill and README require explicit user approval before Takeout synchronization and call for a bounded chat, time range, and data scope. The skill also forbids sending or modifying messages and treats temporary media URLs as credentials that must not be logged or shared. The README describes local indexing and export, but the product also has remote mode, AI features, and server-side media storage without fully explaining recipients and retention across those paths, so data-flow and sensitive-data scores are limited. The package manifest and CI show dependency-management practices, but the packet has no vulnerability review or remediation policy. Recovery or reversal guidance for sync and export is limited. Publisher identity is unverified, and the repository material does not clearly establish authorship or maintenance responsibility, so attribution earns limited credit.
The CLI source defines JSON output, structured failures, timeouts, and stream terminal states; the skill's invocation contract is broadly consistent with these behaviors. The README gives a Homebrew CLI installation path and a separate source-build path, but says little about supported platforms, external service availability, or dependency failure handling. The Security Policy still contains template text in its supported-version and reporting sections, which weakens confidence in the stated maintenance and incident-response process.
The README targets personal Telegram history search and CLI users, while also describing web, bot, server deployment, and AI Agent scenarios. The skill gives concrete boundaries for remote reads, local search, Takeout sync, and temporary media URLs, and explicitly prohibits message writes; this supports a strong capability-boundaries score. Trigger guidance focuses on Telegram Search CLI use, but coverage of unsuitable scenarios, Agent compatibility, and environment prerequisites is limited, with platform requirements mostly scattered across installation notes.
The README is organized around CLI use, Agent integration, web deployment, environment variables, and development, with examples and some limitation notes. It explains the transition between the new and old CLI command names. The complete AGPL-3.0 license text matches the metadata, earning full credit for licensing. The packet has no clear version changelog; the security policy retains template placeholders, and maintenance ownership and vulnerability-response timing are unspecified, so versioning and responsibility lose points.
The JSON envelope and stdout/stderr separation, together with query and export commands, make results usable by Agents. The tool addresses Telegram Chinese and fuzzy search plus history export, with README-listed sync and semantic search features. The evidence does not quantify benefits or costs or adequately describe the operating burden of different deployment modes, so value and cost-benefit receive moderate scores.
The README, CLI skill, CLI source, package manifest, and CI workflows provide related evidence for installation, command boundaries, and structured output; the source also shows error-output and remote-runtime branches. Many feature descriptions remain project claims, and CI configuration does not establish that this revision passed or that runtime results are correct. The packet separates some documented behavior from inference, but does not provide a complete evidence chain for every feature claim, so these criteria do not receive full marks.
- This tool handles private Telegram messages and authentication material. Confirm the sync scope and protect local profiles, remote tokens, and temporary media URLs.
- The security policy's supported-version and vulnerability-reporting sections remain template text; the packet does not specify response times or a maintenance owner.
- The package manifest requires Node.js >=24.13.0, while the README's Homebrew quick start does not state a runtime requirement; check environment requirements for the chosen installation path.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
Release notes excerpt
🚀 Features - server: - Authorize remote clients with OAuth and serve MCP - by @luoling8192 in https://github.com/groupultra/telegram-search/issues/705 [<samp>(e4328)</samp>](https://github.com/groupultra/telegram-search/commit/e432846f) - Sign in with the Telegram MTProto login instead of OIDC - by @luoling8192 and Claude Opus 5.5 in https://github.com/groupultra/telegram-search/issues/707 [<samp>(7eb1d)</samp>](https://github.com/groupultra/telegram-search/commit/7eb1d9ef) - web: …View on GitHub ↗ -
Release notes excerpt
🚀 Features - core: Index linked pages through Firecrawl - by @luoling8192 and Claude Opus 5.5 in https://github.com/groupultra/telegram-search/issues/699 [<samp>(f7ff8)</samp>](https://github.com/groupultra/telegram-search/commit/f7ff8b8b) - db: Manage schema indexes and switch vector search from the CLI - by @luoling8192 in https://github.com/groupultra/telegram-search/issues/700 [<samp>(8349b)</samp>](https://github.com/groupultra/telegram-search/commit/8349bb83) 🐞 Bug Fixes …View on GitHub ↗ -
Release notes excerpt
🚀 Features - cli: - Default to built-in Telegram API credentials and lead README with the CLI - by @luoling8192 and Claude Opus 5.5 in https://github.com/groupultra/telegram-search/issues/695 [<samp>(cb134)</samp>](https://github.com/groupultra/telegram-search/commit/cb134dbc) - Rename the command to tgs and keep tg-search as an alias - by @luoling8192 in https://github.com/groupultra/telegram-search/issues/697 [<samp>(fea3a)</samp>](https://github.com/groupultra/telegram-search/commit/fea3a930) - server: …View on GitHub ↗
FAQ
Does search support Chinese?
Is it free to use?
Where is the data stored?
How secure is my account?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.