Telegram Search

Effortlessly export, back up, and fuzzy search your Telegram chat history, with vector semantic search and AI summaries.

Stars
★ 4.2k
Last updated
14d ago v1.8.0
FARS reviewed
Nov 07, 2026 +2 new
License
AGPL-3.0
Primary language
TypeScript

At a glance

How it runs
Self-hosted serviceCLIWeb app
Works with
Platform-specific
Cost
Free software; you pay for model usage
Setup effort
Medium · a few setup steps
You'll need
Node.jspnpmDockerDocker ComposeShell / CLINetwork accessLocal filesystem
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.

  1. Users who need to find historical information in Telegram chats but find native search lacking for Chinese or other languages.
  2. Individuals or teams needing to back up Telegram chats and export date-filtered JSONL files.
  3. Users who want to converse with an AI based on their chat history to get RAG-based answers.
  4. Active users who want a one-click summary of unread messages to quickly catch up on group or channel activity.
  5. 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 .env docker-compose.yml
Install notes cover
Docker

How do you install or deploy this agent?

  1. 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 run docker 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, run pnpm run dev (browser-only) or pnpm run server:dev and pnpm run web:dev (server mode).

How do you use this agent?

  1. 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)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

FARS trust-control audit

Verified present in source (3/3)
  • confirmation before acting

What are this agent's strengths and limitations?

Pros
  • 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.
Limitations
  • 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?

FollowAgents source review · FARS-2.1
Some gaps
66/ 100 5-point scale 3.3 / 5
This review covers the source as of Nov 07, 2026. The project has shipped 2 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 17/29
Reliability 9/14
Adaptability 14/18
Convention 11/18
Effectiveness 10/13
Verifiability 5/8
Why each dimension lost points
Trust17 / 29 · 2.9/5

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.

Reliability9 / 14 · 3.2/5

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.

Adaptability14 / 18 · 3.9/5

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.

Convention11 / 18 · 3.1/5

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.

Effectiveness10 / 13 · 3.8/5

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.

Verifiability5 / 8 · 3.1/5

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.

Risks and how to mitigate them
  • 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.
Evidence confidence: Low Reviewed Nov 07, 2026 Reviewed revision 17ad5c87aabd New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/telegram-search.svg)](https://followagents.com/en/agents/telegram-search)
<a href="https://followagents.com/en/agents/telegram-search"><img src="https://followagents.com/badge/telegram-search.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v1.8.0
    Release notes excerpt
    &nbsp;&nbsp;&nbsp;🚀 Features - server: - Authorize remote clients with OAuth and serve MCP &nbsp;-&nbsp; 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 &nbsp;-&nbsp; 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 ↗
  2. v1.7.0
    Release notes excerpt
    &nbsp;&nbsp;&nbsp;🚀 Features - core: Index linked pages through Firecrawl &nbsp;-&nbsp; 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 &nbsp;-&nbsp; by @luoling8192 in https://github.com/groupultra/telegram-search/issues/700 [<samp>(8349b)</samp>](https://github.com/groupultra/telegram-search/commit/8349bb83) &nbsp;&nbsp;&nbsp;🐞 Bug Fixes …
    View on GitHub ↗
  3. v1.6.1
    Release notes excerpt
    &nbsp;&nbsp;&nbsp;🚀 Features - cli: - Default to built-in Telegram API credentials and lead README with the CLI &nbsp;-&nbsp; 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 &nbsp;-&nbsp; 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?
Yes, the project specifically addresses the issue of Telegram's inability to search Chinese chat records, and it supports multilingual fuzzy search.
Is it free to use?
The project itself is free and open-source, but AI embedding and LLM features require users to configure API keys in the app, which may incur third-party costs.
Where is the data stored?
By default, it uses PGlite (a browser-based database), but can be configured to use PostgreSQL. Media files are stored in MinIO or a local directory. All data is self-hosted.
How secure is my account?
You need to provide your own API credentials. The project warns against scams and states it is for legitimate personal use only. Use official API keys and protect them carefully.
Was this page helpful?
View on GitHub ↗ Install ↓

Related concepts