setup-bot

setup-bot is a skill for Claude Code from n24q02m/claude-plugins. It costs 22 tokens per session (687 once invoked), scanned A, a copy of setup-bot, Apache-2.0.

A skill for diagnosing Telegram bot connection problems. A Telegram bot is an automated account that can send and receive messages.

In plain words
What is it for?
Checking bot configuration, finding chats, sending a connection test, and resolving common Telegram access or delivery failures.
Why use it?
It helps identify configuration, permissions, chat discovery, and common sending errors when a bot is not working.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the telegram plugin — 2 skills shipped together

Good fit Checking bot configuration, finding chats, sending a connection test, and resolving common Telegram access or delivery failures.

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

Made for: Claude Code.

Or install telegram, the plugin that ships this one along with the rest of its 2 skills.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/n24q02m/claude-plugins/setup-bot"><img src="https://agentmods.dev/badge/skills/n24q02m/claude-plugins/setup-bot.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 687 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.00022 $0.00687
Opus 5.5 $0.00009 $0.00275
Sonnet 5.5 $0.00004 $0.00137
Haiku 4.5 $0.00002 $0.00069

Measured 16d ago against content hash 5f8dc2cc3653, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

setup-bot 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 16d 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 setup-bot — 2 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.

plugins/telegram/skills/setup-bot/SKILL.md · 69 lines

How it starts

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

Setup Bot -- Error Diagnosis

Diagnose and fix Telegram bot connectivity issues. This skill assumes the bot already exists in BotFather -- focus is on getting it working with the telegram MCP server.

Steps

  1. Verify connection status:

    • config(action="status") to check current bot token and connection state
    • If status shows "not configured", the user needs to set TELEGRAM_BOT_TOKEN env var and restart the MCP server (token is NOT runtime-configurable)
  2. Test send to obtain chat_id:

    • chat(action="list") to see known chats
    • If no chats appear, instruct user to send any message to the bot first (the bot must receive at least one message to discover chat_id)
    • Send test: message(action="send", chat_id="<id>", text="Connection test")
  3. Diagnose errors using the flowchart below

Error Diagnosis Flowchart

Send fails
  |
  +-- HTTP 403 "Forbidden: bot was blocked by the user"
  |     -> User blocked the bot. They must unblock it in Telegram.
  |
  +-- HTTP 403 "Forbidden: bot is not a member of the channel/group"
  |     -> Bot not added to the group/channel.
  |     -> For groups: add bot as member via group settings.
  |     -> For channels: add bot as admin (channels require admin for posting).
  |
  +-- HTTP 400 "Bad Request: chat not found"
  |     -> Wrong chat_id format.
  |     -> Groups use negative IDs (e.g., -1001234567890).
  |     -> Channels use negative IDs or @channel_username.
  |     -> Users use positive numeric IDs.
  |
  +-- HTTP 400 "Bad Request: can't parse entities"
  |     -> MarkdownV2 formatting error. See channel-post skill for escaping rules.
  |
  +-- HTTP 401 "Unauthorized"
  |     -> Bot token is invalid or revoked.
  |     -> Verify token with @BotFather (/mybots -> select bot -> API Token).
  |     -> If token was regenerated, update TELEGRAM_BOT_TOKEN and restart.
  |
  +-- HTTP 429 "Too Many Requests"
  |     -> Rate limited. Wait the retry_after seconds indicated in the response.
  |     -> Telegram limits: ~30 messages/second globally, 1 msg/second per chat.
  |
  +-- Connection timeout / DNS resolution failed
  |     -> Network issue. Check internet connectivity.
  |     -> If behind proxy/firewall, Telegram API (api.telegram.org) may be blocked.
  |
  +-- "Not Found" on getMe
        -> Token format is wrong. Must be "123456:ABC-DEF..." format.

Read the full file on GitHub · 69 lines

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. 16d ago Changed 5f8dc2cc3653
  2. 3mo ago First seen · 69 lines · 22 tokens per session scan A 08fae2dcb161

Subscribe to this mod's changes

setup-bot is a skill published in the GitHub repository n24q02m/claude-plugins (4 stars, last pushed today), licensed Apache-2.0. It adds 22 tokens to every session and 687 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to setup-bot, differing in 2 lines, and is treated as a copy.

Related

setup-bot compared with skills from other repositories

setup-bot next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
setup-botn24q02m/claude-pluginsSkill4todayApache-2.0A22Claude Code
error-handling-patternswshobson/agentsSkill43k5d agoMITA43Claude Code
openai-api-troubleshootingasgeirtj/system_prompts_leaksSkill74kyesterdayCC0-1.0A91Claude Code, Codex
rest-graphql-debugNousResearch/hermes-agentSkill267ktodayMITD21Claude Code, Codex
spine-perftonone-ai/tononeSkill842d agoMITA55Claude Code
spine-recontonone-ai/tononeSkill842d agoMITA50Claude Code
1c-xdto-validateDesko77/claude-code-skills-1cSkill1026d agoMITA36Claude Code