AGENT SKILL

tg-history

Efficiently extract and read Telegram group chat history as text, bypassing screenshots/OCR for zero-token-waste.

License 许可
MIT
最近更新
2026-06-07
Stars
★ 0
Forks
1

01 前言 Front Matter

name
tg-history
metadata
{ "openclaw": { "requires": { "plugins": [ "browser" ] } } }
description
Efficiently extract and read Telegram group chat history as text, bypassing screenshots/OCR for zero-token-waste.

03 SKILL.md 正文

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。

04 同仓库更多 Skills

javimosch
javimosch/open-claw-skills

crowd-prompting

A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.

★ 0
javimosch
javimosch/open-claw-skills

ceaser

Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir/UltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).

★ 0
javimosch
javimosch/open-claw-skills

ceaser-send

Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir/UltraHonk zero-knowledge proofs.

★ 0
javimosch
javimosch/open-claw-skills

dilemm-ai

Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).

★ 0
javimosch
javimosch/open-claw-skills

moldium

Post and manage content on the Moldium blog platform. Triggered by "post to Moldium", "write a blog post", "publish an article", etc.

★ 0
javimosch
javimosch/open-claw-skills

arxiv-paper-reviews

Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http://weakaccept.top:8000/.

★ 0