Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计异常

telegram-syncTelegram sync 搜索

Agent Skill

telegram-sync 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

588

周安装

24

GitHub Stars

5

下载量

190
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:telegram-sync(Telegram sync 搜索)
来源仓库:https://github.com/lycfyi/community-agent-plugin
仓库路径:skills/telegram-sync
安装命令:
npx skills add https://github.com/lycfyi/community-agent-plugin --skill telegram-sync
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/lycfyi/community-agent-plugin --skill telegram-sync

简介

telegram-sync 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 可结合来源仓库和原始 README 进一步核验具体用法。

SKILL.md

telegram-sync

Sync Telegram messages to local Markdown storage.

Trigger Phrases

  • "sync Telegram"
  • "pull from Telegram"
  • "fetch Telegram messages"
  • "download Telegram history"
  • "telegram sync"
  • "sync my Telegram DMs"

Description

This skill downloads messages from Telegram groups and DMs to local Markdown files. Messages are stored in an LLM-friendly format that can be easily read and analyzed.

DMs are synced by default. Use --no-dms to sync groups only.

Usage

Basic Sync (Groups + DMs)

Sync all (groups + DMs, last 7 days):

python ${CLAUDE_PLUGIN_ROOT}/tools/telegram_sync.py

Sync groups only (exclude DMs):

python ${CLAUDE_PLUGIN_ROOT}/tools/telegram_sync.py --no-dms

Sync Specific Group

python ${CLAUDE_PLUGIN_ROOT}/tools/telegram_sync.py --group 1234567890

Sync Specific DM

python ${CLAUDE_PLUGIN_ROOT}/tools/telegram_sync.py --dm 123456789

Time Range

Sync last 30 days:

python ${CLAUDE_PLUGIN_ROOT}/tools/telegram_sync.py --days 30

Full sync (ignore previous state):

python ${CLAUDE_PLUGIN_ROOT}/tools/telegram_sync.py --full

Forum Topics

Sync specific topic in a forum group:

python ${CLAUDE_PLUGIN_ROOT}/tools/telegram_sync.py --group 1234567890 --topic 5

Custom Limits

Sync with custom message limit for groups:

python ${CLAUDE_PLUGIN_ROOT}/tools/telegram_sync.py --days 30 --limit 5000

Sync with custom DM limit (default is 100 for privacy):

python ${CLAUDE_PLUGIN_ROOT}/tools/telegram_sync.py --dm-limit 500

Message Limits

Group Limit (--limit)

  • Default: 2000 (configurable in config/agents.yaml)
  • Use higher limits for longer lookback periods
  • Example: --days 90 --limit 10000 for 90-day archive

DM Limit (--dm-limit)

  • Default: 100 (privacy-conscious default)
  • Lower than group limit by design
  • Increase manually if needed: --dm-limit 500

Sync Modes

Incremental Sync (default)

  • Only fetches messages newer than the last sync
  • Fast and efficient for regular updates
  • Uses the last_message_id from sync state

Full Sync (--full)

  • Ignores previous sync state
  • Downloads all messages within the date range
  • Use when you want a fresh start

Output

Groups

Group messages are saved to:

data/{group_id}-{slug}/messages.md
data/{group_id}-{slug}/sync_state.yaml
data/{group_id}-{slug}/group.yaml

For forum groups with topics:

data/{group_id}-{slug}/{topic_name}/messages.md

DMs

DM messages are saved to a separate directory:

dms/telegram/{user_id}-{name}/messages.md
dms/telegram/{user_id}-{name}/sync_state.yaml
dms/telegram/{user_id}-{name}/user.yaml
dms/telegram/manifest.yaml

Rate Limiting

Telegram has strict rate limits. The sync tool:

  • Adds delays between requests (100ms minimum)
  • Handles FloodWait errors automatically
  • Shows progress during sync

If rate limited, you'll see the wait time and can retry later.

Message Format

## 2026-01-06

### 10:30 AM - @alice (123456)
Hello everyone!

### 10:31 AM - @bob (789012)
↳ replying to @alice:
Hey there!

[photo: vacation.jpg (1.2MB)]

Reactions: heart 5 | thumbsup 3

Exit Codes

  • 0 - Success
  • 1 - Authentication error
  • 2 - Group not found or permission denied
  • 3 - Rate limited

Troubleshooting

"Could not find the input entity" Error

Error message:

Could not find the input entity for PeerUser(user_id=...) (PeerUser)

What this means: Telethon (the Telegram library) doesn't have this group cached locally. It needs to know the group's "access hash" which is typically cached when you interact with the group.

Solutions (try in order):

  1. Run telegram-list first to refresh the entity cache: python ${CLAUDE_PLUGIN_ROOT}/tools/telegram_list.py This iterates through all your dialogs and caches the entities.
  2. Use the exact ID from telegram-list output: # First, list groups to get correct IDs python ${CLAUDE_PLUGIN_ROOT}/tools/telegram_list.py # Then sync using the ID shown python ${CLAUDE_PLUGIN_ROOT}/tools/telegram_sync.py --group <ID_FROM_LIST>
  3. Open the group in Telegram app:

- Open the Telegram desktop or mobile app - Navigate to the group you want to sync - Send a message or just open the chat - This forces Telegram to cache the entity - Then retry the sync

  1. For supergroups/channels: Make sure you're using the correct ID format. Supergroup IDs are typically positive integers (not negative).

"No group specified" Error

Error message:

No group specified and no default group configured.

Solution: Either specify a group ID or set a default:

# Option 1: Specify group directly
python ${CLAUDE_PLUGIN_ROOT}/tools/telegram_sync.py --group 1234567890

# Option 2: Set a default group
python ${CLAUDE_PLUGIN_ROOT}/tools/telegram_init.py --group 1234567890

Permission Denied (Exit Code 2)

Possible causes:

  • You're not a member of the group
  • The group is private
  • You've been banned from the group
  • Admin permissions are required

Solution: Check your membership status in the Telegram app.

Rate Limited (Exit Code 3)

Error message:

Rate limited: Wait X seconds.

Solution: Wait the specified time before retrying. Telegram rate limits are strict and cannot be bypassed.

Related Skills

  • telegram-init - Initialize Telegram connection
  • telegram-list - List groups and topics
  • telegram-read - Read synced messages

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

39.37%
按下载量换算75

Claude

29.87%
按下载量换算57

Cursor

19.25%
按下载量换算37

Gemini CLI

8.98%
按下载量换算17

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills