tg-history

Extract Telegram group chat history from the web DOM into timestamped logs.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/nakamotosai/chii --skill tg-history
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tg-history
Source: https://github.com/nakamotosai/chii/tree/main/skills/tg-history
Command: npx skills add https://github.com/nakamotosai/chii --skill tg-history

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Efficiently extract and read Telegram group chat history directly from the web, bypassing screenshots and OCR to minimize token usage.

Core Features & Use Cases

  • Auto-detects target Telegram group, navigates the chat, and ensures the latest messages are read.
  • Reads messages from the DOM and formats them as "[time] sender: message" for clean, copy-ready history.
  • Reduces token costs by avoiding image-based extraction and OCR.

Quick Start

Ask it to retrieve the chat history for a Telegram group.

Frequently Asked Questions about tg-history

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract Telegram chat history from the web without taking screenshots?

You can extract Telegram chat history by reading the web DOM directly, which bypasses screenshots and OCR to produce clean, timestamped text logs. This approach formats messages as '[time] sender: message' for efficient archival and review.

What is the best way to save Telegram group messages to reduce token usage?

Saving Telegram group messages via direct DOM parsing reduces token usage by avoiding image-based extraction and OCR. It reads the text directly from the web client and formats it into a standardized text structure.

Can I extract messages from any Telegram group using the web client?

Yes, extraction is applicable to any Telegram group visible in the web client. The process requires DOM access to the chat page, performs strict title verification, and bottom-loads to capture the latest messages.

How do I archive Telegram chat logs into a standardized text format?

To archive Telegram chat logs, the DOM parsing process reads messages directly from the web page and formats them into a standardized '[time] sender: message' structure. This yields clean, copy-ready history logs for archival.

Does extracting Telegram chat history via DOM parsing capture the latest messages?

Yes, extracting Telegram chat history via DOM parsing utilizes bottom-loading to ensure the latest messages are captured. It auto-detects the target group, navigates the chat, and verifies the title before reading the DOM.