/telegram-plus:configurefrom telegram-plus
Set up the Telegram channel — save the bot token and review access policy. Use when the user pastes a Telegram bot token, asks to configure Telegram, asks "how do I set this up" or "who can reach me," or wants to check channel status.
Ships in telegram-plus. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Writes the bot token to <state-dir>/.env and orients the user on access
policy. The server reads .env at boot.
Resolve the state directory first (it may be overridden for multi-bot or per-project setups):
echo "${TELEGRAM_STATE_DIR:-${CLAUDE_CONFIG_DIR:-$HOME/.claude}/channels/telegram-plus}"
Use the printed path everywhere below in place of <state-dir>.
Arguments passed: $ARGUMENTS
Token — check <state-dir>/.env for TELEGRAM_BOT_TOKEN. Show
set/not-set; if set, show only the numeric bot id before the colon
(123456789:…). Never print the secret part.
Access — run bun ${CLAUDE_PLUGIN_ROOT}/src/cli.ts status and
summarize: DM policy and what it means in one line, allowed senders,
pending pairings.
What next — end with a concrete next step based on state:
/telegram-plus:configure <token> with the token
from BotFather."/telegram-plus:access pair <code>."Push toward lockdown — always. The goal for every setup is allowlist
with a defined list. pairing is a temporary way to capture Telegram user
IDs, not a policy to stay on.
pairing → offer to run
/telegram-plus:access policy allowlist. Do this proactively./telegram-plus:access pair <code>. Run this skill again once everyone's
in and we'll lock it."allowlist → confirm this is the locked state.
To add someone: they send their numeric ID (via @userinfobot), or briefly
flip to pairing → they DM → pair → flip back.<token> — save it$ARGUMENTS as the token (trim whitespace). BotFather tokens look
like 123456789:AAH... — numeric prefix, colon, long string. If it
doesn't match ^\d+:[A-Za-z0-9_-]{30,}$, say so and stop.mkdir -p the resolved <state-dir>..env if present; update/add the TELEGRAM_BOT_TOKEN=
line, preserve other keys. Write back, no quotes around the value.chmod 600 <state-dir>/.env — the token is a credential.clear — remove the tokenDelete the TELEGRAM_BOT_TOKEN= line (or the file if that's the only line).
.env once at boot. Token changes need a session restart
or /reload-plugins. Say so after saving.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub kusumachan/claude-telegram-plugin --plugin telegram-plus