Efficiently extract and read Telegram group chat history as text, bypassing screenshots/OCR for zero-token-waste.
Scanned 9/7/2026
Install to Claude Code
npx -y skills add Demerzels-lab/elsamultiskillagent --skill tg-history --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Tg History?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/demerzels-lab-tg-history)More formats (shields.io, HTML) on the badges page.
---
name: tg-history
description: Efficiently extract and read Telegram group chat history as text, bypassing screenshots/OCR for zero-token-waste.
metadata:
{
"openclaw": {
"requires": { "plugins": ["browser"] }
}
}
---
# tg-history Skill
极速、省钱的 Telegram 聊天记录读取工具。
## 功能
- **直接提取文本**:不通过截图 or OCR,直接从网页 DOM 中抓取聊天记录。
- **Token 暴减**:相比截图,Token 消耗降低 99% 以上。
- **精准格式**:自动整理为 `[时间] 发送者: 消息内容` 的清爽格式。
## 核心机制 (串行执行流程)
为了确保读取的是最新且正确的群聊记录,必须执行以下流程:
1. **精准导航 (Navigate & Wait)**:
- 搜索并进入目标群组。
- 等待至少 2 秒,确保 DOM 加载完成。
2. **标题核验 (Verify Title)**:
- 检查 `.ChatInfo .title` 元素。
- 确认标题与目标群名完全匹配。严禁在标题未确认的情况下提取数据。
3. **强制触底 (Scroll to Bottom)**:
- 循环检测并点击“向下箭头” (`.sticky-reveal-button`),直到其消失。
- 若箭头未出现,手动将 `.MessageList` 滚动至 `scrollHeight`。
4. **提取与整理 (Extract & Verify)**:
- 确保看到的是最新的消息(可通过时间戳校验)。
- 从 DOM 中提取文本,整理为标准格式。
## 使用方法
直接对 AI 说:
- "帮我看看 [群名] 的聊天记录"
- "总结一下 [群名] 最近聊了什么"
- "运行 tg-history 获取 [群名] 历史"
## 优势
传统的“截图+AI识别”方案,一张图就要几千个像素数据;而 `tg-history` 直接读取网页上的文字,一段几百字的聊天记录只占用几百个字节的 Token。
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Playbook for creating and editing uCoz landing pages via MCP tools (`templates_tool`, `ftp_tool`, `modules_tool`). Use for tasks such as: "build a landing page", "update the homepage as a landing page", "create a promo page on the homepage", "add a lead form / menu / SEO to the homepage". Homepage: `page_list`, `page_get`; first publish — `page_update` with full `page_tmpl`; HTML edits after generation — `patch_template` (module_id=2, template_id=1), not `update_template`. Activate the mail f...
Interact with the Paperclip control plane API to manage tasks, coordinate with other agents, and follow company governance. Use when you need to check assignments, update task status, delegate work, post comments, set up or manage routines (recurring scheduled tasks), or call any Paperclip API endpoint. Do NOT use for the actual domain work itself (writing code, research, etc.) — only for Paperclip coordination.
Instantly.ai cold email outreach API - manage campaigns, leads, accounts, and analytics. Use for cold email automation, lead management, campaign creation/monitoring, and email account warmup.
Digital Audio Workstation usage, music composition, interactive music systems, and game audio implementation for immersive soundscapes.
Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance, code, URLs, and structure. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md. Trigger: /caveman-compress FILEPATH or "compress memory file"