add-telegram

A setup command for connecting Copana, a personal AI assistant, to Telegram, a mobile messaging service. It creates a Telegram bot, configures its credentials, and tests that the bot can receive messages.

In plain words
What is it for?
Creating a bot through BotFather, finding its chat ID, setting environment variables, running the Python bot, testing it, and optionally keeping it running with tmux or system services.
Why use it?
It removes the manual work of wiring a mobile chat channel to the assistant and includes an allowed-user setting for access control.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/payrequest/copana/add-telegram
Any agent
npx skills add PayRequest/copana --skill add-telegram
Clone the repo
git clone --depth 1 https://github.com/PayRequest/copana

Made for: Claude Code, Codex.

Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 338 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. Scan, not verified.
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 $0.00000 $0.00338
Opus 5 $0.00000 $0.00169
Sonnet 5 $0.00000 $0.00068
Haiku 4.5 $0.00000 $0.00034

Measured 2d ago against content hash 72a8d6558d8c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

add-telegram scanned grade C with 2 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 2d 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -s "https://api.telegram.org/bot<TOKEN>/getUpdates" | python3 -c "import sys,json; print(json.load(sys.stdin)['result'][0]['message']['chat']['id'])"

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s "https://api.telegram.org/bot<TOKEN>/getUpdates" | python3 -c "import sys,json; print(json.load(sys.stdin)['result'][0]['message']['chat']['id'])"
.claude/skills/add-telegram/SKILL.md · 39 lines

What it actually says

/add-telegram — Add Telegram Bot

Set up a Telegram bot so the user can chat with their AI on mobile.

Steps

  1. Check prerequisites:

    • python3 available
    • scripts/requirements.txt dependencies installed (if not, install them)
  2. Guide bot creation:

    • Tell user to message @BotFather on Telegram
    • Create a new bot and get the token
    • Message the bot once, then get chat ID:
      curl -s "https://api.telegram.org/bot<TOKEN>/getUpdates" | python3 -c "import sys,json; print(json.load(sys.stdin)['result'][0]['message']['chat']['id'])"
      
  3. Configure .env:

    • Set TELEGRAM_BOT_TOKEN=<token>
    • Set TELEGRAM_CHAT_ID=<chat_id>
    • Set TELEGRAM_ALLOWED_USER=<username> (security)
  4. Test the bot:

    python3 scripts/telegram_bot.py &
    

    Send a test message via Telegram.

  5. Set up persistent running (optional):

    • Create a tmux session: tmux new -s copana-bot
    • Run: python3 scripts/telegram_bot.py
    • Detach: Ctrl+B, D
    • Or suggest launchd/systemd for auto-start
  6. Enable automation scripts that use Telegram:

    • Morning briefing, proactive pings, evening check-in
    • Add cron jobs from scripts/crontab.example
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. 2d ago First seen · 39 lines · 0 tokens per session scan C 72a8d6558d8c

Subscribe to this mod's changes

add-telegram is a skill published in the GitHub repository PayRequest/copana (10 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 338 tokens. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). 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

npm-package

Opinionated TypeScript npm package template for ESM packages. Enforces src→dist builds with tsc, strict TypeScript defaults, explicit exports, and publish-safe package metadata. Relative source imports must use .ts or .tsx (never .js); tsc rewrites them via rewriteRelativeImportExtensions. Use this when creating or…

remorses/kimaki · 78 tokens

new-skill

Best practices for creating a SKILL.md file. Covers file structure, frontmatter, writing style, and where to place skills in a repository. Use when the user wants to create a new skill, update an existing skill, write a SKILL.md, or asks how skills work.

remorses/kimaki · 61 tokens

skill-creator

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

fastclaw-ai/fastclaw · 64 tokens

find-skills

Run this BEFORE any package install (pip / npm / apt / brew / cargo / gem / go install) you would otherwise execute via the exec tool — including when the user asks for a deliverable that needs third-party libraries (PDF generation, image processing, scrapers, dashboards, charts, OCR, audio/video, …). It searches the…

fastclaw-ai/fastclaw · 150 tokens

fastclaw-skill-guide

Create new skills for FastClaw agents. Use when the user asks to create a skill, turn a workflow into a skill, or build reusable automation. Also use when discussing skill format, structure, or best practices.

fastclaw-ai/fastclaw · 51 tokens

fastclaw-api-integration

Use this skill when integrating an upstream application with FastClaw as an agent runtime.

fastclaw-ai/fastclaw · 0 tokens