telegram

telegram is a skill for Claude Code, Codex from awrshift/skill-telegram. It costs 143 tokens per session (1,234 once invoked), scanned A, original, MIT.

A workflow for reading Telegram messages, searching chats and channels, downloading media, and transcribing voice notes through a user account.

In plain words
What is it for?
Use it to read saved messages or chats, parse public channels, search Telegram, download voice notes, or transcribe audio.
Why use it?
It provides one documented way to retrieve Telegram content without relying on separate bot-based workflows.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to read saved messages or chats, parse public channels, search Telegram, download voice notes, or transcribe audio.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/awrshift/skill-telegram/skill-telegram
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 awrshift/skill-telegram --skill skill-telegram
Clone the repo
git clone --depth 1 https://github.com/awrshift/skill-telegram

Made for: Claude Code, Codex.

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 telegram

README.md
[![agentmods](https://agentmods.dev/badge/skills/awrshift/skill-telegram/skill-telegram/github.svg)](https://agentmods.dev/skills/awrshift/skill-telegram/skill-telegram)
Your own site
<a href="https://agentmods.dev/skills/awrshift/skill-telegram/skill-telegram"><img src="https://agentmods.dev/badge/skills/awrshift/skill-telegram/skill-telegram/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 telegram

Your own site · 80×15
<a href="https://agentmods.dev/skills/awrshift/skill-telegram/skill-telegram"><img src="https://agentmods.dev/badge/skills/awrshift/skill-telegram/skill-telegram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 143 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,234 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 original No closer match found 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.00143 $0.01234
Opus 5.5 $0.00057 $0.00494
Sonnet 5.5 $0.00029 $0.00247
Haiku 4.5 $0.00014 $0.00123

Measured 1mo ago against content hash 01a5d6e97857, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

telegram 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 1mo ago.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/sanitizer.py, scripts/tg_fetch_channels.py, scripts/tg_fetch_voice.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

SKILL.md · 131 lines

How it starts

The opening of the file, as written. The whole thing — 131 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Telegram Skill — User API Integration

All operations via Telethon (user API, not bot API). One session file for everything.

Setup (first run)

  1. Get API credentials at https://my.telegram.org/apps → create app → copy api_id and api_hash
  2. Set env vars in your .env:
    TG_API_ID=your_api_id
    TG_API_HASH=your_api_hash
    
  3. Install Telethon: pip install telethon
  4. Run setup diagnostic: python3 scripts/tg_setup.py
  5. Authenticate (first time): python3 scripts/tg_setup.py --auth → enter phone + code from Telegram

Session file is saved automatically. All subsequent operations reuse it.

Set TG_SESSION env var to point to your session file, or the skill auto-discovers it.

1. Read Messages (any chat)

# Saved Messages
python3 scripts/tg_read.py --saved-messages --limit 10

# Specific chat/person
python3 scripts/tg_read.py --chat username --limit 20

# Public channel
python3 scripts/tg_read.py --channel SEOBAZA --limit 5

# With explicit session file
python3 scripts/tg_read.py --saved-messages --limit 5 --session /path/to/tg_session.session

Output: JSON lines (one per message) with: id, date, text, has_voice, has_audio, has_photo, has_document, mime_type, file_size, duration.

2. Parse Channels

Fetch messages from public channels with text sanitization (anti-injection, emoji cleanup, link extraction, dedup hashing).

# Single channel
python3 scripts/tg_fetch_channels.py --channel SEOBAZA --limit 20

# Multiple channels
python3 scripts/tg_fetch_channels.py --channels SEOBAZA,seo_inside,serpstat --limit 10

# Since date
python3 scripts/tg_fetch_channels.py --channel SEOBAZA --since 2026-03-01

# Save to file
python3 scripts/tg_fetch_channels.py --channel SEOBAZA --output messages.jsonl

# Pretty JSON
python3 scripts/tg_fetch_channels.py --channel SEOBAZA --pretty

Output: JSONL with: channel, channel_id, id, date, text, text_sanitized, links, hash, views, forwards.

Read the full file on GitHub · 131 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 131 lines · 143 tokens per session scan A 01a5d6e97857

Subscribe to this mod's changes

telegram is a skill published in the GitHub repository awrshift/skill-telegram (8 stars, last pushed 7mo ago), licensed MIT. It adds 143 tokens to every session and 1,234 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

agentic-delegation

Plan who does each step of a task in this repo, on which model, at which effort: Haiku or Sonnet subagents for search, recon, and log-reading; code edits on Opus 5.5; start at medium effort and escalate on evidence (high, then xhigh, then Fable 5.1 for one stuck task); the orchestrator keeps design, security-sensitive…

VincentChuWaiChow/vanguard-frontier-agentic · 152 tokens

aws-non-destructive-task-automation-advisor

Design AWS non-destructive task automation using EventBridge, Step Functions, Lambda, Systems Manager Automation, SNS, SQS, approvals, notifications, reporting, and evidence gathering. Use only for read-only or coordination-safe automation; do not use for destructive remediation or mutation-heavy runbooks.

VincentChuWaiChow/vanguard-frontier-agentic · 68 tokens

telegram-agent

Telegram CLI for AI agents. Use when the user needs to read or search Telegram, send or edit a message, download media, organise Saved Messages, monitor conversations, or automate a Telegram task. Triggers on “check my messages”, “send a message”, “search Telegram”, “read unread”, “listen to chat”, “download from…

beautyfree/telegram-agent · 90 tokens

limma

R limma package for microarray and RNA-seq. Use for linear models in differential expression.

LeoLin990405/r-analytics-skill · 23 tokens

RcppParallel

R RcppParallel package for parallel C++. Use for multi-threaded C++ code with Intel TBB.

LeoLin990405/r-analytics-skill · 26 tokens

r-parallel-local

R local parallel computing with parallel, future, furrr. Use for multi-core processing.

LeoLin990405/r-analytics-skill · 23 tokens