Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
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
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Telegram

BSecurity

Send messages, files, images, or documents to the user via their Telegram bot. Use when the user asks to send something to Telegram, notify them, or share content via Telegram.

2 stars
0 votes
0 copies
0 views
Added 9/27/2026
toolsgobashnodeapi

Works with

api

Security Analysis

B75/100
criticalExfiltrates credentials via HTTP — exact pattern from Snyk ToxicSkills study

Pro shows the line behind each finding and how to fix it

Scanned 10/7/2026

$npx -y skills add zalogarcia/zalo-claude-code-setup --skill telegram --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Telegram?

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

Security grade badge for Telegram
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/zalogarcia-telegram/badge)](https://www.skillsdirectory.com/skills/zalogarcia-telegram)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: telegram
description: Send messages, files, images, or documents to the user via their Telegram bot. Use when the user asks to send something to Telegram, notify them, or share content via Telegram.
---

Send content to the user's Telegram bot using the Telegram Bot API.

## Configuration

Secrets are stored in environment variables (configured in `~/.claude/settings.local.json`):

- **Bot Token:** `$TELEGRAM_BOT_TOKEN`
- **Chat ID:** `$TELEGRAM_CHAT_ID`
- **Bot Username:** @zalocc9191_bot

## How to Send

### Text Messages

Use `curl` to send messages via the Telegram Bot API:

```bash
curl -s -X POST "https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage" \
  -H "Content-Type: application/json" \
  -d "{\"chat_id\": \"${TELEGRAM_CHAT_ID}\", \"text\": \"YOUR_MESSAGE_HERE\", \"parse_mode\": \"Markdown\"}"
```

### Send Files/Documents

```bash
curl -s -X POST "https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendDocument" \
  -F "chat_id=${TELEGRAM_CHAT_ID}" \
  -F "document=@/path/to/file"
```

### Send Photos

```bash
curl -s -X POST "https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendPhoto" \
  -F "chat_id=${TELEGRAM_CHAT_ID}" \
  -F "photo=@/path/to/image.png" \
  --form-string "caption=$(cat /tmp/caption.txt)"
```

Text fields (`caption`, `text`) go through `--form-string`, never `-F`: curl's `-F` treats a `;`
in the value as a field-parameter separator and silently drops everything after it (message
21478 on 2026-10-02 lost its last three lines at "web live; the app"). Write the caption to a
file first so no `$` in it is expanded either. Read `result.caption` back from the response.

## Before you send: honour the shared cooldown

The bridge daemon (M), mail-watch, devi-watch and every worker's curl all write to the ONE
owner chat with the ONE bot token, so they share Telegram's per-chat budget (about one message
per second, bursts tolerated, then `429 Too Many Requests` with a `retry_after` that on
2026-09-19 was 8687 seconds). The bridge publishes every 429 it sees to
`~/dev/claude-telegram-bridge/tg-throttle.json` as `{"until": <ms since epoch>, ...}`. Check it
first, and if the deadline is in the future do NOT send: say in your reply that Telegram is
throttling the bot until that time and leave the file where the owner can find it.

```bash
node -e 'const j=JSON.parse(require("fs").readFileSync(process.env.HOME+"/dev/claude-telegram-bridge/tg-throttle.json","utf8"));const left=(j.until-Date.now())/1000;if(left>0){console.log("THROTTLED until "+new Date(j.until).toLocaleTimeString()+" ("+Math.ceil(left/60)+"m left)");process.exit(3)}' 2>/dev/null || echo "clear to send"
```

If your own `curl` gets `"error_code":429`, publish it the same way so the others hold fire:
write `{"until": now_ms + (retry_after + 1) * 1000, "retryAfter": <n>, "method": "sendMessage",
"at": now_ms, "source": "worker"}` to that path (only if its `until` is later than what is
already there). Never retry into a 429, and never send more than one message per second.

## Guidelines

- Use `parse_mode: "Markdown"` for formatted text messages
- For long messages (>4096 chars), split into multiple messages
- When sending code snippets, wrap them in triple backticks in the message
- Tell the user the message was sent only after the API response shows `"ok":true`; otherwise report the `description` it returned
- If sending a file, verify the file exists before attempting to send

Attribution

zalogarciazalogarcia
View sourceSee grades on GitHubMore from zalogarcia →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

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

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

ucoz-landing-skill

Create and edit uCoz homepage landing pages via MCP: custom templates, hero sections, lead forms, navigation menus, SEO, and responsive layout. Includes a visual design system (style selection, layout/grid, section recipes, typography/spacing, color tokens, component states, icons, modern CSS/JS, motion, imagery, social proof, copy/voice, accessibility). Uses ucoz-mcp tools for templates, site file uploads, and site modules.

107 votes

Paperclip

Interact with the Paperclip control plane API for task coordination and governance. Use when checking assignments, updating issue status, posting comments, delegating work, managing routines, or calling Paperclip API endpoints.

953191 votes

Pptx

Presentation toolkit (.pptx). Create/edit slides, layouts, content, speaker notes, comments, for programmatic presentation creation and modification.

471861 votes

Daw Music

Digital Audio Workstation usage, music composition, interactive music systems, and game audio implementation for immersive soundscapes.

761 votes

Instantly Rdsthomas Mission Control

Instantly.ai cold email outreach API - manage campaigns, leads, accounts, and analytics. Use for cold email automation, lead management, campaign creation/monitoring, and email account warmup.

761 votes
View all in tools →