Skip to content
Agentmart
Submit a tool

notify-telegram

This skill should be used when the agent needs to "send a message on Telegram", "notify me", "share results via Telegram", "reply to the user on Telegram".

Skill by ar90n

IndexedMIT
Write a review

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/ar90n-notify-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.

We use your email only for this newsletter. Privacy

About

This skill should be used when the agent needs to "send a message on Telegram", "notify me", "share results via Telegram", "reply to the user on Telegram". Uses the Telegram Bot API. Requires TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID.

Use cases: backend, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/notify-telegram

What's inside

Skill name
notify-telegram
Description
This skill should be used when the agent needs to "send a message on Telegram", "notify me", "share results via Telegram", "reply to the user on Telegram". Uses the Telegram Bot API. Requires TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID.
License
MIT
Instructions
57 lines in SKILL.md · view on GitHub

Before installing

  • Instructions call the network

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Telegram Notification

Send messages to a Telegram chat via Bot API.

## Environment Variables

- `TELEGRAM_BOT_TOKEN`: Bot token from BotFather (required)
- `TELEGRAM_CHAT_ID`: Default target chat (overridden by task metadata)

## Sending Messages

Extract `chat_id` from the task metadata. Optionally use `msg_id` for
`reply_to_message_id` to improve UX (the reply appears linked to the
user's original message in the chat).

```bash
# Extract from task metadata (first line of the task content)
chat_id=$(head -1 "$TASK_FILE" | grep -oP 'chat_id=\K[^ \]]*')
msg_id=$(head -1 "$TASK_FILE" | grep -oP 'msg_id=\K[^ \]]*')

# Use chat_id from metadata, fall back to env var
chat_id="${chat_id:-$TELEGRAM_CHAT_ID}"

# Build request — reply_to_message_id is optional (UX improvement)
reply_args=""
[ -n "$msg_id" ] && reply_args='"reply_to_message_id": '$msg_id','

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

## Message Limits

Telegram caps at 4096 chars. For longer content:
1. Split at ~4000 chars on paragraph boundaries
2. Send sequentially with 0.5s sleep between chunks
3. Only the **first** chunk needs `reply_to_message_id`

## Markdown (v1)

Safe subset: `*bold*`, `_italic_`, `` `code` ``, ` ```pre``` `, `[text](url)`.
Avoid MarkdownV2.

## Error Handling

- HTTP 429: wait `retry_after` seconds, retry once.
- HTTP 400: retry without parse_mode.
- Network error: retry once after 5s.
- 2 failures: report error, do not retry.

From ar90n/claude-inbox, MIT.

More from ar90n/claude-inbox

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Feb 15, 2026 (8 months ago)
Last release
Mar 11, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from ar90n

Cite this page

notify-telegram skill. Agent Mart. https://agentmart.dev/skills/ar90n-notify-telegram (last updated 2026-10-24)