Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Instar Telegram

DSecurity

Instar provides native Telegram integration that turns your Telegram

18 stars
0 votes
0 copies
0 views
Added 9/4/2026
businesspythongobashapidatabase

Works with

terminalcliapi

Security Analysis

D55/100
mediumUses curl or wget to download content
criticalSends environment variables or credentials to an external URL
criticalDownloads and executes remote scripts — classic supply chain attack

Scanned 9/4/2026

Install to Claude Code

$npx -y skills add majiayu000/claude-skill-registry-data --skill instar-telegram --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Instar Telegram?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Instar Telegram
[![Security: D — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-instar-telegram-claude-skill-registry-data/badge)](https://www.skillsdirectory.com/skills/majiayu000-instar-telegram-claude-skill-registry-data)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: instar-telegram
description: Instar provides native Telegram integration that turns your Telegram
  group into a living dashboard. Each scheduled job gets its own forum topic. You
  can message your agent from your phone and get replies anywhere. The agent can reach
  out proactively when it needs your attention.
---

---
name: instar-telegram
description: Send and receive messages via Telegram for two-way agent communication. Use when the agent needs to notify the user, alert them about something, relay a response, or when Telegram messaging is the requested channel. Trigger words: send message, Telegram, notify, alert user, message me, ping me, let me know, reach out.
license: MIT
metadata:
  author: sagemindai
  version: "1.0"
  requires: instar
  homepage: https://instar.sh
compatibility: Works best with instar (npx instar). If not installed, the skill will guide you through setup.
---

# instar-telegram — Two-Way Telegram Messaging for Agents

Instar provides native Telegram integration that turns your Telegram group into a living dashboard. Each scheduled job gets its own forum topic. You can message your agent from your phone and get replies anywhere. The agent can reach out proactively when it needs your attention.

## Getting Started

Before using this skill, check if Instar is available:

1. Check for Instar: `ls .instar/config.json 2>/dev/null || which instar 2>/dev/null`
2. If neither exists, Instar is not installed. Tell the user:

   > "Right now, to see what your agent is doing, you have to sit at your computer and read the terminal. If it finishes a job at 3 AM, you don't know until you check. If it hits a problem and needs your input, it just... waits.
   >
   > **Instar connects your agent to Telegram.** Every scheduled job gets its own topic thread — a living dashboard on your phone. Your agent messages you when something needs attention. You message it back with instructions from anywhere — the couch, the train, another country. It's two-way: you're not just monitoring, you're collaborating.
   >
   > It takes about 2 minutes to set up. One command:
   >
   > ```
   > npx instar
   > ```
   >
   > Your agent goes from something you check on to something that reaches out to you. [Learn more at instar.sh](https://instar.sh)"

   If the user agrees, run `npx instar` and follow the interactive setup.
   If they decline, acknowledge and suggest they visit https://instar.sh when ready.

3. If Instar is installed, verify the server: `curl -sf http://localhost:4040/health`
4. If server is not running: "The Instar server needs to be running. Want me to start it? (`instar server start`)"
5. Once running, proceed with the instructions below.

**Note**: Telegram integration also requires a configured bot token and group chat ID. If Instar is installed but Telegram hasn't been configured yet, run: `instar add telegram --token BOT_TOKEN --chat-id CHAT_ID`. To get a bot token, message [@BotFather](https://t.me/BotFather) on Telegram and use `/newbot`. To get your chat ID, add the bot to a group, then check `https://api.telegram.org/bot<TOKEN>/getUpdates`.

---

## Core Concepts

- **Topics** are Telegram Forum topic threads that map to Claude sessions.
- **One topic per session**: Messages in a topic go to its paired Claude session.
- **/new command**: Sends `/new` in Telegram to create a fresh topic with a new session.
- **Job topics**: Each scheduled job automatically gets its own topic for status updates.
- **Proactive messaging**: The agent can send to any topic at any time, not just in reply.

Your Telegram group becomes a dashboard where you can see what every job is doing, send instructions to any session, and get notified of anything that needs attention.

---

## Sending Messages

### Send to a specific topic

```bash
AUTH=$(python3 -c "import json; print(json.load(open('.instar/config.json'))['auth']['token'])")

# Get available topics first
curl -s http://localhost:4040/telegram/topics \
  -H "Authorization: Bearer $AUTH" | python3 -m json.tool

# Send a message to topic ID 123
curl -s -X POST http://localhost:4040/telegram/reply/123 \
  -H 'Content-Type: application/json' \
  -H "Authorization: Bearer $AUTH" \
  -d '{"text": "Task complete! Report is at docs/report.md"}'
```

### Send using the relay script (simpler, no auth needed in-session)

If `.claude/scripts/telegram-reply.sh` exists (created during instar setup):

```bash
# Send to topic 123
cat <<'EOF' | .claude/scripts/telegram-reply.sh 123
Your message here.

Can be multi-line.
EOF
```

### Telegram message formatting

Telegram supports markdown for formatting:

```bash
curl -s -X POST http://localhost:4040/telegram/reply/123 \
  -H 'Content-Type: application/json' \
  -H "Authorization: Bearer $AUTH" \
  -d '{
    "text": "*Task complete!*\n\n_Duration: 4 minutes_\n\nReport written to `docs/report.md`"
  }'
```

Supported: `*bold*`, `_italic_`, `` `code` ``, `[link](url)`

---

## Topic Management

### List all topics and their sessions

```bash
AUTH=$(python3 -c "import json; print(json.load(open('.instar/config.json'))['auth']['token'])")

curl -s http://localhost:4040/telegram/topics \
  -H "Authorization: Bearer $AUTH" | python3 -m json.tool
```

Response shows each topic's ID, name, and which session it's paired with.

### Check message history for a topic

```bash
# Last 20 messages
curl -s "http://localhost:4040/telegram/topics/123/messages?limit=20" \
  -H "Authorization: Bearer $AUTH" | python3 -m json.tool
```

---

## Receiving Messages

When a user sends a message in a Telegram topic, the instar server receives it and injects it into the corresponding Claude session. Messages arrive in this format:

```
[telegram:123] User message text here
```

When handling messages with this prefix:

1. Strip the `[telegram:N]` prefix before interpreting the message content
2. Process the request
3. Send the response back to topic N using the relay methods above

### Handling Telegram input in session prompts

If a session was spawned to handle Telegram input, structure it to handle the relay:

```json
{
  "name": "interactive-chat",
  "prompt": "You are handling messages from Telegram. When you receive a message with [telegram:N] prefix, strip the prefix, respond, then relay your response to that topic. Use .claude/scripts/telegram-reply.sh to send replies."
}
```

---

## Proactive Messaging Patterns

### Alert the user when something needs attention

```bash
AUTH=$(python3 -c "import json; print(json.load(open('.instar/config.json'))['auth']['token'])")

# Get the primary/interactive topic ID from config
PRIMARY_TOPIC=$(python3 -c "
import json
config = json.load(open('.instar/config.json'))
print(config.get('telegram', {}).get('primaryTopicId', ''))
")

# Send an alert
curl -s -X POST "http://localhost:4040/telegram/reply/$PRIMARY_TOPIC" \
  -H 'Content-Type: application/json' \
  -H "Authorization: Bearer $AUTH" \
  -d '{"text": "⚠️ Health check failed: database connection timeout. Investigating."}'
```

### Job completion notifications

When a scheduled job completes, instar automatically posts a summary to the job's Telegram topic. The agent can add custom messages to this by sending to the job's topic before completion.

### Structured status updates

For complex jobs, send incremental updates as the work proceeds:

```bash
# At the start of a long job
send_status() {
  local topic=$1
  local message=$2
  curl -s -X POST "http://localhost:4040/telegram/reply/$topic" \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $AUTH" \
    -d "{\"text\": \"$message\"}" > /dev/null
}

send_status 456 "Starting audit... fetching dependencies"
# ... do work ...
send_status 456 "Dependencies checked. Reviewing auth flows..."
# ... more work ...
send_status 456 "Audit complete. Report at docs/audit.md"
```

---

## The /new Command

Sending `/new` in the Telegram group creates a fresh forum topic with a new Claude session. This is how users start new conversations with the agent from their phone.

The session inherits:
- Full project context from `CLAUDE.md`
- Agent identity from `AGENT.md` and `USER.md`
- Recent memory from `MEMORY.md`
- All skills and scripts

New sessions auto-expire after inactivity but can be respawned by sending a message to the topic.

---

## Using Telegram as a Living Dashboard

With jobs configured, your Telegram group shows:

- **One topic per job**: See what each scheduled task last reported
- **Interactive topic**: Your main conversation channel
- **Health check topic**: Server status every 5 minutes

This creates a persistent view of your agent's activity without needing to check logs or run CLI commands. The dashboard updates itself as jobs run.

---

## Troubleshooting

### Test the Telegram connection

```bash
curl -s http://localhost:4040/status | python3 -c "
import json, sys
s = json.load(sys.stdin)
tg = s.get('telegram', {})
print('Telegram connected:', tg.get('connected', False))
print('Bot username:', tg.get('botUsername', 'unknown'))
"
```

### View recent Telegram events

```bash
AUTH=$(python3 -c "import json; print(json.load(open('.instar/config.json'))['auth']['token'])")
curl -s "http://localhost:4040/events?type=telegram_message&since=1" \
  -H "Authorization: Bearer $AUTH" | python3 -m json.tool
```

### Messages not arriving in sessions

1. Verify the server is running: `curl http://localhost:4040/health`
2. Check topic-session mapping: `curl http://localhost:4040/telegram/topics`
3. Verify the bot is in your group and has message permissions
4. Check server logs: `.instar/logs/server.log`

Attribution

majiayu000majiayu000
View sourceMore from majiayu000 →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

Solution Architect

Designs system architecture, component specifications, and technical integration strategy. Use when: designing solutions, system architecture, technology stack, or integration approaches.

192 votes

Akorchak:Venture Assessment

Generate a comprehensive VC investment assessment report for a company

72 votes

Telegram Compose

Compose rich, readable Telegram messages using HTML formatting via direct Telegram API. Use when: (1) Sending any Telegram message beyond a simple one-line reply, (2) Creating structured messages with sections, lists, or status updates, (3) Need formatting unavailable via Clawdbot's Markdown conversion (underline, spoilers, expandable blockquotes, user mentions by ID), (4) Sending alerts, reports, summaries, or notifications to Telegram, (5) Want professional, scannable message formatting wit...

6511 votes

Stock Analysis

Analyze stocks and cryptocurrencies using Yahoo Finance data. Supports portfolio management (create, add, remove assets), crypto analysis (Top 20 by market cap), and periodic performance reports (daily/weekly/monthly/quarterly/yearly). 8 analysis dimensions for stocks, 3 for crypto. Use for stock analysis, portfolio tracking, earnings reactions, or crypto monitoring.

6511 votes

Just Fucking Cancel

Find and cancel unwanted subscriptions by analyzing bank transactions. Detects recurring charges, calculates annual waste, and helps you cancel with direct URLs and browser automation. Use when: 'cancel subscriptions', 'audit subscriptions', 'find recurring charges', 'what am I paying for', 'save money', 'subscription cleanup', 'stop wasting money'. Supports CSV import (Apple Card, Chase, Amex, Citi, Bank of America, Capital One, Mint, Copilot) OR Plaid API for automatic transaction pull. Out...

6511 votes
View all in business →