configure-telegram
Configure Telegram bot notifications via natural language
Skill by leejaedus
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/leejaedus-configure-telegram
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
configure-telegram- Description
- Configure Telegram bot notifications via natural language
- License
- MIT
- Instructions
- 224 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Files (1)
- SKILL.md
SKILL.md (first lines)
# Configure Telegram Notifications
Set up Telegram notifications so PEP can message you when sessions end, need input, or complete background tasks.
## How This Skill Works
This is an interactive, natural-language configuration skill. Walk the user through setup by asking questions with AskUserQuestion. Write the result to `~/.claude/.pep-config.json`.
## Step 1: Detect Existing Configuration
```bash
CONFIG_FILE="$HOME/.claude/.pep-config.json"
if [ -f "$CONFIG_FILE" ]; then
HAS_TELEGRAM=$(jq -r '.notifications.telegram.enabled // false' "$CONFIG_FILE" 2>/dev/null)
CHAT_ID=$(jq -r '.notifications.telegram.chatId // empty' "$CONFIG_FILE" 2>/dev/null)
PARSE_MODE=$(jq -r '.notifications.telegram.parseMode // "Markdown"' "$CONFIG_FILE" 2>/dev/null)
if [ "$HAS_TELEGRAM" = "true" ]; then
echo "EXISTING_CONFIG=true"
echo "CHAT_ID=$CHAT_ID"
echo "PARSE_MODE=$PARSE_MODE"
else
echo "EXISTING_CONFIG=false"
fi
else
echo "NO_CONFIG_FILE"
fi
```
If existing config is found, show the user what's currently configured and ask if they want to update or reconfigure.
## Step 2: Create a Telegram Bot
Guide the user through creating a bot if they don't have one:
```
To set up Telegram notifications, you need a Telegram bot token and your chat ID.
CREATE A BOT (if you don't have one):
1. Open Telegram and search for @BotFather
2. Send /newbot
3. Choose a name (e.g., "My PEP Notifier")
4. Choose a username (e.g., "my_omc_bot")
5. BotFather will give you a token like: 123456789:ABCdefGHIjklMNOpqrsTUVwxyz
GET YOUR CHAT ID:
1. Start a chat with your new bot (send /start)
2. Visit: https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates
3. Look for "chat":{"id":YOUR_CHAT_ID}
- Personal chat IDs are positive numbers (e.g., 123456789)
- Group chat IDs are negative numbers (e.g., -1001234567890)
```
## Step 3: Collect Bot Token
Use AskUserQuestion:
**Question:** "Paste your Telegram bot token (from @BotFather)"
The user will type their token in the "Other" field.
**Validate** the token:
- Must match pattern: `digits:alphanumeric` (e.g., `123456789:ABCdefGHI...`)
- If invalid, explain the format and ask again
## Step 4: Collect Chat ID
Use AskUserQuestion:
**Question:** "Paste your Telegram chat ID (the number from getUpdates API)"
The user will type their chat ID in the "Other" field.
**Validate** the chat ID:
- Must be a number (positive for personal, negative for groups)
- If invalid, offer to help them find it:
```bash
# Help user find their chat ID
BOT_TOKEN="USER_PROVIDED_TOKEN"
echo "Fetching recent messages to find your chat ID..."
curl -s "https://api.telegram.org/bot${BOT_TOKEN}/getUpdates" | jq '.result[-1].message.chat.id // .result[-1].message.from.id // "No messages found - send /start to your bot first"'
```
## Step 5: Choose Parse Mode
Use AskUserQuestion:
**Question:** "Which message format do you prefer?"
**Options:**
1. **Markdown (Recommended)** - Bold, italic, code blocks with Markdown syntax
2. **HTML** - Bold, italic, code with HTML tags
## Step 6: Configure Events
Use AskUserQuestion with multiSelect:
**Question:** "Which events should trigger Telegram notifications?"
**Options (multiSelect: true):**
1. **Session end (Recommended)** - When a Claude session finishes
2. **Input needed** - When Claude is waiting for your response (great for long-running tasks)
3. **Session start** - When a new session begins
4. **Session continuing** - When a persistent mode keeps the session alive
Default selection: session-end + ask-user-question.
## Step 7: Write Configuration
Read the existing config, merge the new Telegram settings, and write back:
```bash
CONFIG_FILE="$HOME/.claude/.pep-config.json"
mkdir -p "$(dirname "$CONFIG_FILE")"
if [ -f "$CONFIG_FILE" ]; then
EXISTING=$(cat "$CONFIG_FILE")From leejaedus/pepcode, MIT.
More from leejaedus/pepcode
- 0.404score
agent-audit
leejaedus
Analyze agent usage patterns and recommend cleanup of unused agents
SkillDFreshness: DClaude Code +9 - 0.404score
cancel
leejaedus
Cancel any active PEP mode (autopilot, ralph, ultrawork, ecomode, ultraqa, swarm, ultrapilot, pipeline, team)
SkillDFreshness: DClaude Code +9 - 0.404score
distill
leejaedus
Distill session patterns into CLAUDE.md rules and project documentation
SkillDFreshness: DClaude Code +9 - 0.401score
doctor
leejaedus
Diagnose and fix pepcode installation issues
SkillDFreshness: DClaude Code +9 - 0.401score
frontend-ui-ux
leejaedus
Designer-developer for UI/UX work
SkillDFreshness: DClaude Code +9 - 0.401score
ecomode
leejaedus
Token-efficient model routing modifier
SkillDFreshness: DClaude Code +9 - 0.401score
code-review
leejaedus
Run a comprehensive code review
SkillDFreshness: DClaude Code +9 - 0.401score
analyze
leejaedus
Deep analysis and investigation
SkillDFreshness: DClaude Code +9 - 0.398score
help
leejaedus
Guide on using pepcode plugin
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Feb 12, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/leejaedus/pepcode
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from leejaedus
- 0.404score
distill
leejaedus
Distill session patterns into CLAUDE.md rules and project documentation
SkillDFreshness: DClaude Code +9 - 0.404score
cancel
leejaedus
Cancel any active PEP mode (autopilot, ralph, ultrawork, ecomode, ultraqa, swarm, ultrapilot, pipeline, team)
SkillDFreshness: DClaude Code +9 - 0.404score
agent-audit
leejaedus
Analyze agent usage patterns and recommend cleanup of unused agents
SkillDFreshness: DClaude Code +9 - 0.401score
code-review
leejaedus
Run a comprehensive code review
SkillDFreshness: DClaude Code +9 - 0.401score
frontend-ui-ux
leejaedus
Designer-developer for UI/UX work
SkillDFreshness: DClaude Code +9 - 0.401score
ecomode
leejaedus
Token-efficient model routing modifier
SkillDFreshness: DClaude Code +9
Cite this page
configure-telegram skill. Agent Mart. https://agentmart.dev/skills/leejaedus-configure-telegram (last updated 2026-10-24)