Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

telegram-search-cli

Skill by groupultra

Uses an authorized Telegram profile through the Telegram Search CLI to discover chats, read bounded message ranges, and analyze stored data. It is for users who want local-first search and export of Telegram history, and it never sends or changes messages.

  • Score 84
  • 4.2k stars
  • AGPL-3.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install telegram-search-cli

Built from the published package, never by AI.

git clone --depth 1 https://github.com/groupultra/telegram-search /tmp/telegram-search && mkdir -p ~/.claude/skills && cp -r /tmp/telegram-search/.agents/skills/telegram-search-cli ~/.claude/skills/telegram-search-cli

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install telegram-search-cli in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Telegram Search CLI is a local-first data tool for Telegram, used through an authorized profile. It discovers chats, reads messages in bounded time ranges without storing them, and can persist approved history through Takeout sync. Stored data can then be queried, searched, summarized with stats, and exported to JSONL.

The skill tells the assistant to run atomic tgs commands with --json and to stop when authorization is missing or Telegram rejects Takeout. It also covers temporary media URLs from a remote service and an optional real end-to-end acceptance canary. It does not send or edit Telegram messages, and it does not ask for API hashes, login codes or session strings.

Written from the project's SKILL.md and checked against it.

What it can do

  • Discover chatsLists profiles and discovers chats for an authorized profile using chats list.
  • Bounded remote readsReads messages in a time range from Telegram without storing them, using messages list.
  • Takeout syncPersists approved chats and time ranges to local storage through sync --takeout after user approval.
  • Local query and searchQueries and searches stored messages with messages query, search and context, without connecting to Telegram.
  • StatisticsSummarizes stored data by period, such as by month, with a chosen timezone.
  • JSONL exportExports stored data to a directory with the export command.
  • Temporary media URLsGets short-lived URLs for media from a configured remote service for use by a model.
  • Real CLI acceptance canaryRuns an optional canary that checks discovery, Takeout sync, local queries and deterministic export.

What you need

  • Node.js and pnpm to build the CLI
  • A Telegram account to log in by phone
  • An authorized profile for the CLI
  • A remote endpoint for temporary media URLs (optional)

Try asking

  • List my Telegram profiles and discover chats I can read
  • Read messages from this chat between two dates without saving them
  • Search my stored Telegram messages for a keyword and show context

Good to know

  • Does not send or modify Telegram messages.
  • Takeout sync needs explicit user approval for chats, time range and data scope.
  • Remote total counts are reference only and may not apply sender or date filters.
  • Temporary media URLs expire after five minutes and need a remote service that supports them.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/telegram-search-cli/SKILL.md, .agents/skills/telegram-search-cli/scripts/run-canary.mjs. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md6 KB
  • agents/openai.yaml223 B
  • scripts/run-canary.mjs8 KB

Alternatives to telegram-search-cli

All alternatives →

Compare with setup-zoom-webhooks, baoyu-post-to-weibo or add-dial-number

telegram-search-cli: common questions

Can Telegram Search CLI send messages for me?

No. The source says the skill must not send messages or modify Telegram data.

What happens if Takeout authorization is missing?

The assistant must stop and ask the user to approve the export request on a Telegram device. It must not switch to normal history reads for bulk sync.

Does it need a server or web UI to run?

No. The source says the CLI is local-first and does not require a Web UI or daemon.

How do I install telegram-search-cli?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is telegram-search-cli free?

The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.

Is telegram-search-cli safe to use?

It scores 84 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to telegram-search-cli?

Similar skills: setup-zoom-webhooks, baoyu-post-to-weibo, add-dial-number, setup-zoom-websockets.

telegram-search-cli Install

Add to stack

Loading.