agentleFS
sinediedsinedied/agent-skills/.agents/skills/telegram-send/SKILL.md

telegram-send

Skill4 starsChanged 5 months agoMITView on GitHub

Send a message to the user via Telegram, optionally with media (images, videos, documents). USE FOR: sending notifications, alerts, status updates, or any message to the user through Telegram.

  • Reads credentials

5 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Look for a .env file if environment variables are not set.

    line 10
  2. Distinctive:

    Start a conversation with your new bot (search for it by username and press Start).

    line 22
  3. Very specific:

    Look for "chat":{"id": ...} in the JSON response.

    line 28
  4. Distinctive:

    Use this skill when the user asks to:

    line 62

≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Telegram Send

Send a message (with optional media) to the user via Telegram using the Bot API. Look for a .env file if environment variables are not set.

Setup

1. Create a Telegram Bot

  1. Open Telegram and search for @BotFather.
  2. Send /newbot and follow the prompts to choose a name and username.
  3. BotFather will give you a bot token (e.g. 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11). Save it.

2. Get Your Chat ID

  1. Start a conversation with your new bot (search for it by username and press Start).
  2. Send any message to the bot (e.g. "hello").
  3. Open this URL in a browser, replacing <BOT_TOKEN> with your token:
    https://api.telegram.org/bot<BOT_TOKEN>/getUpdates
  4. Look for "chat":{"id": ...} in the JSON response. That number is your chat ID.

3. Configure Environment Variables

Set these environment variables (e.g. in your shell profile, .env file, or VS Code settings):

export TELEGRAM_BOT_TOKEN="your-bot-token"
export TELEGRAM_CHAT_ID="your-chat-id"

Usage

To send a text message:

node .agents/skills/telegram-send/scripts/send.mjs "Your message here"

To send a media file (image, video, or document) with an optional caption:

node .agents/skills/telegram-send/scripts/send.mjs --media path/to/file.mp4 "Optional caption"

Supported media types:

  • Photos: .jpg, .jpeg, .png, .gif, .webp
  • Videos: .mp4, .mov, .avi, .mkv, .webm
  • Documents: any other file type

The script supports Markdown formatting in messages and captions.

When to Use

Use this skill when the user asks to:

  • Send a Telegram message or notification
  • Notify them when a long-running task completes
  • Send a status update or alert via Telegram
  • Share an image, video, or file via Telegram

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.