tg-history

tg-history is a skill for Claude Code from Uri6407/claudegram. It costs 53 tokens per session (317 once invoked), scanned A, a copy of tg-history, MIT.

Instructions for showing recent messages from a specific Telegram chat through a chat-history service.

In plain words
What is it for?
Looking up a chat, retrieving recent messages, and presenting each message with its time, sender, text or attachment type, and any reply reference.
Why use it?
They make chat-history requests consistent by resolving usernames, checking chat details, limiting the number of messages, and marking replies.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Looking up a chat, retrieving recent messages, and presenting each message with its time, sender, text or attachment type, and any reply reference.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/uri6407/claudegram/tg-history
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Uri6407/claudegram --skill tg-history
Clone the repo
git clone --depth 1 https://github.com/Uri6407/claudegram

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tg-history

README.md
[![agentmods](https://agentmods.dev/badge/skills/uri6407/claudegram/tg-history/github.svg)](https://agentmods.dev/skills/uri6407/claudegram/tg-history)
Your own site
<a href="https://agentmods.dev/skills/uri6407/claudegram/tg-history"><img src="https://agentmods.dev/badge/skills/uri6407/claudegram/tg-history/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tg-history

Your own site · 80×15
<a href="https://agentmods.dev/skills/uri6407/claudegram/tg-history"><img src="https://agentmods.dev/badge/skills/uri6407/claudegram/tg-history.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 317 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00053 $0.00317
Opus 5 $0.00026 $0.00159
Sonnet 5 $0.00011 $0.00063
Haiku 4.5 $0.00005 $0.00032

Measured 11d ago against content hash 270dc8488bd6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

tg-history scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to tg-history — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/tg-history/SKILL.md · 24 lines

What it actually says

Показать последние сообщения чата $chat.

Лимит — $limit (если пусто, используй 30; если задано больше 200 — отрежь до 200, это хард-кап Telethon, и предупреди меня).

Алгоритм:

  1. Если $chat начинается с @resolve_username → id.
  2. Покажи краткую инфу о чате через get_chat_info.
  3. Вызови get_history с chat=<id> и limit=<вычисленный по правилу выше>.
  4. Выведи список: время · отправитель · текст (или иконка media-type для вложений).
  5. Если у сообщения есть reply_to_msg_id — пометь стрелочкой "↳ #".
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 24 lines · 53 tokens per session scan A 270dc8488bd6

Subscribe to this mod's changes

tg-history is a skill published in the GitHub repository Uri6407/claudegram (2 stars, last pushed 2d ago), licensed MIT. It adds 53 tokens to every session and 317 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to tg-history, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

ha-mac-control

Hope Agent native macOS desktop control — the standard maccontrol status / diagnostics / apps / dock / spaces / snapshot / visual / windows / menu / clipboard / dialog loop, target-first action rules, no-blind-coordinate policy, and recovery for stale AX/window/menu/dialog state. Load whenever using maccontrol, or…

shiwenwen/hope-agent · 139 tokens

ha-skill-creator

Create, edit, improve, or audit Hope Agent skills. Use when the user wants to: (1) create a new skill from scratch, (2) edit or improve an existing skill, (3) review or clean up a SKILL.md file, (4) run evaluations to test skill effectiveness, (5) optimize skill descriptions for better trigger accuracy. Trigger…

shiwenwen/hope-agent · 106 tokens

ha-browser

Hope Agent browser automation — the standard status → tabs → snapshot → act loop, stale-ref recovery rules, and what to do when login / 2FA / captcha / camera-prompt / dialog blocks progress. Load this skill whenever you reach for the browser tool. Trigger on: user asks the agent to open / control / click / scrape /…

shiwenwen/hope-agent · 140 tokens

ha-logs

A read-only troubleshooting skill for querying Hope Agent’s local SQLite databases, which store logs, conversations, and background-job status.

shiwenwen/hope-agent · 183 tokens

ha-pet-import

Safely import, select, switch, or enable a compatible desktop pet in Hope Agent. Resolve packages from any origin, including local folders, zip archives, pet.json plus a sprite, PNG/WebP atlases, chat attachments, repository or cloud files, direct HTTPS artifact URLs, and download pages. Use whenever a user asks to…

shiwenwen/hope-agent · 109 tokens

feishu

A toolkit for working with Feishu, also called Lark, a workplace collaboration platform. It covers documents, spreadsheets, files, wikis, approvals, calendars, and contacts.

shiwenwen/hope-agent · 189 tokens