LaunchKit · 2026
Back to Skills

tg-history

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

0
0 downloads
by @ls18166407597-design

Setup & Installation

openclaw skills install @ls18166407597-design/tg-history

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install tg-history

What This Skill Does

Extracts Telegram group chat history as plain text directly from the webpage DOM. Formats messages as [time] sender: content. Requires no screenshots or OCR.

Direct DOM extraction uses roughly 99% fewer tokens than screenshot-based approaches, making it practical to process long chat histories in a single pass.

When to use it

  • Reading recent messages in a Telegram group
  • Summarizing what a group discussed over the past day
  • Monitoring a Telegram channel for latest updates
  • Pulling chat logs from a group for offline review
  • Checking who said what and when in a busy group

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Summarize what's been discussed in the 'Dev Updates' group recently

AGENT
  1. 1Navigate to and open the target Telegram group in the browser
  2. 2Wait 2 seconds for DOM to fully load
  3. 3Verify the group title matches via .ChatInfo .title element
  4. 4Click the down-arrow button repeatedly until the message list reaches the bottom
  5. 5Extract message text from DOM and format each entry as [time] sender: content
OUTPUT

A structured summary of recent group messages with senders and timestamps

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

Telegram account with access to the target group