telegram-bot-manager

telegram-bot-manager is a skill for Claude Code, Codex from CraftOS-dev/CraftBot. It costs 54 tokens per session (782 once invoked), scanned A, original, MIT.

A setup and troubleshooting guide for connecting Telegram bots to OpenClaw. Telegram is a messaging platform, and a bot is an automated account that can receive and send messages.

In plain words
What is it for?
Use it to register a bot with Telegram's BotFather, configure its token, enable pairing, test connectivity, and manage channel or webhook settings.
Why use it?
It helps find configuration, authentication, token, and network problems that can stop the bot from working.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

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/craftos-dev/craftbot/telegram-bot-manager
Any agent
npx skills add CraftOS-dev/CraftBot --skill telegram-bot-manager
Clone the repo
git clone --depth 1 https://github.com/CraftOS-dev/CraftBot

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-bot-manager

README.md
[![agentmods](https://agentmods.dev/badge/skills/craftos-dev/craftbot/telegram-bot-manager.svg)](https://agentmods.dev/skills/craftos-dev/craftbot/telegram-bot-manager)
Your own site
<a href="https://agentmods.dev/skills/craftos-dev/craftbot/telegram-bot-manager"><img src="https://agentmods.dev/badge/skills/craftos-dev/craftbot/telegram-bot-manager.svg" alt="Measured on agentmods" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 782 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.1 $0.00054 $0.00782
Opus 5 $0.00027 $0.00391
Sonnet 5 $0.00011 $0.00156
Haiku 4.5 $0.00005 $0.00078

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

Security

Grade A, and why

telegram-bot-manager scanned grade A with 1 finding 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.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/package_skill.py, scripts/setup_bot.py, scripts/test_bot.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.

Makes network callslowCapability

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

curl -I https://api.telegram.org
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/telegram-bot-manager/SKILL.md · 127 lines

How it starts

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

Telegram Bot Manager

Quick Start

Setup a new Telegram bot

  1. Create bot via BotFather

    • Message @BotFather on Telegram
    • Use /newbot command
    • Follow prompts for bot name and username
    • Copy the bot token (format: 1234567890:ABCdefGHIjklMNOpqrsTUVwxyz)
  2. Configure in OpenClaw

    • Add token to OpenClaw config
    • Enable Telegram plugin
    • Set up pairing mode for DM access

Validate bot configuration

# Test Telegram API connectivity
curl -I https://api.telegram.org

# Check bot token validity
curl -s "https://api.telegram.org/bot<YOUR_TOKEN>/getMe"

Common Workflows

Troubleshooting connectivity issues

When api.telegram.org is unreachable:

  1. Check network access

    curl -I -m 10 https://api.telegram.org
    
  2. Verify DNS resolution

    nslookup api.telegram.org
    
  3. Test alternative endpoints

    curl -I https://telegram.org
    

Configuring OpenClaw Telegram integration

See OPENCLAW_CONFIG.md for detailed configuration steps.

Bot token security

  • Never commit bot tokens to version control
  • Store tokens in environment variables or secure config files
  • Rotate tokens if compromised
  • Use different tokens for different environments (dev/prod)

Bot Commands Reference

Common Telegram bot commands for BotFather:

  • /newbot - Create a new bot
  • /mybots - Manage your bots
  • /setdescription - Set bot description
  • /setabouttext - Set about text
  • /setuserpic - Set bot profile picture
  • /setcommands - Set bot commands
  • /token - Generate new token
  • /revoke - Revoke current token
  • /setprivacy - Configure privacy mode

Webhook vs Polling

Webhook (Recommended for production)

  • Bot receives updates via HTTP POST
  • Requires public HTTPS endpoint
  • More efficient for high-volume bots

Polling (Good for development)

  • Bot continuously checks for updates
  • Simpler setup, no public endpoint needed
  • Easier to debug locally

Read the full file on GitHub · 127 lines

Files

What ships with it

10 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. 2d ago First seen · 127 lines · 54 tokens per session scan A f8a97132ca89

Subscribe to this mod's changes

telegram-bot-manager is a skill published in the GitHub repository CraftOS-dev/CraftBot (380 stars, last pushed 3d ago), licensed MIT. It adds 54 tokens to every session and 782 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

turix-mac

Computer Use Agent (CUA) for macOS automation using TuriX. Use when you need to perform visual tasks on the desktop, such as opening apps, clicking buttons, or navigating UIs that don't have a CLI or API.

TurixAI/TuriX-CUA · 53 tokens

browser-control

Control web pages in an existing Chromium remote-debugging session with deterministic sagui commands or the browser-only AI Agent. Use when Claude Code needs to inspect tabs, observe semantic elements, navigate, click, type, send keys, scroll, or complete a browser goal through CDP without controlling native macOS UI…

NakaokaRei/SwiftAutoGUI · 72 tokens

macos-control

Control macOS GUI applications via mouse automation, keyboard input, screenshots, image recognition, and AppleScript execution. Use when you need to interact with macOS app UIs, take screenshots, click buttons, type text, scroll, drag, or locate images on screen.

NakaokaRei/SwiftAutoGUI · 58 tokens

open-record-replay

Record a user-demonstrated macOS workflow with the Open Record/Replay CLI, inspect the captured event stream, prepare a skill evidence package, and hand it to the host agent's native skill creator. Use when the user asks the agent to watch them perform a task, record a workflow, or create/refine a reusable Computer…

humblebanana/open-record-replay · 77 tokens

artifact-storage-policy

管理 Codex 交付物的專案識別、Google Drive/GitHub 路由、檔名、儲存位置與回讀驗證;凡工作報告、外部保存、交付成果或新 repository 選擇涉及遠端儲存時使用。.

a275618631/codex-antigravity-collaboration · 68 tokens

model-worker-routing

Route a task to the existing Ox Alpha worker only when the user explicitly names Ox Alpha; preserve normal Codex behavior for all other tasks.

a275618631/codex-antigravity-collaboration · 32 tokens