Skip to content
TakoAPI
Back to skills

tg-history

by ls18166407597-design

Browser & Automation
—Not yet rated
Your rating

Brief

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

Description

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

INPUT

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

AGENT
  1. 1

    Navigate to and open the target Telegram group in the browser

  2. 2

    Wait 2 seconds for DOM to fully load

  3. 3

    Verify the group title matches via .ChatInfo .title element

  4. 4

    Click the down-arrow button repeatedly until the message list reaches the bottom

  5. 5

    Extract 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

  • Telegram account with access to the target group

Installation

clawhub install ls18166407597-design/tg-history

Run the CLI command, or paste the prompt into Claude Code, Cursor, Codex or whichever coding agent you use.

Links