telegram

Send Telegram messages to configured chats via the Bot API.

10|Updated Nov 29, 2025
One-click install
npx skills add https://github.com/benjaminshafii/digital-empire --skill telegram-benjaminshafii
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: telegram
Source: https://github.com/benjaminshafii/digital-empire/tree/main/.opencode/skill/telegram
Command: npx skills add https://github.com/benjaminshafii/digital-empire --skill telegram-benjaminshafii

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables sending Telegram messages and notifications through the Bot API using credentials stored in local configuration, enabling seamless alerting and status updates from OpenCode workflows.

Core Features & Use Cases

  • Multi-chat support: configure multiple chat aliases (default, alerts, house, etc.) and direct messages to the right chat via .opencode/skill/telegram/telegram-chats.json.
  • Lightweight automation: post status updates, alerts, and summaries to Telegram chats from scripts or AI prompts.
  • Practical use: broadcast a critical alert to a group or send a daily summary to your personal chat.

Quick Start

source .skill.config && curl -s -X POST "https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/sendMessage"
-d "chat_id=$TELEGRAM_CHAT_ID"
-d "text=Hello from OpenCode!"

Frequently Asked Questions about telegram

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I send Telegram messages from a script using the Bot API?

Send Telegram messages by sourcing the local .skill.config file to load your bot token and chat ID, then executing a curl POST request to the Telegram Bot API sendMessage endpoint with your text payload.

Can I broadcast notifications to multiple Telegram chats at once?

Yes, you can broadcast notifications to multiple chats by defining named aliases with their respective chat IDs in the telegram-chats.json file and directing your messages to one or more configured targets.

What do I need to configure before sending Telegram bot alerts?

You need to create a Telegram bot to get a bot token and identify your target chat IDs, then store these credentials locally in the .skill.config and telegram-chats.json files to authenticate API requests.

Does this Telegram notification skill work without external dependencies?

Yes, sending Telegram messages works without external dependencies because it relies entirely on standard curl commands and locally stored JSON configuration files to interact directly with the Telegram Bot API.

What is the best way to organize automated alerts for different Telegram groups?

The best way to organize alerts is by assigning descriptive aliases like alerts or house to your chat IDs in the telegram-chats.json file, allowing you to route status updates and summaries to specific groups programmatically.

Why are my Telegram bot messages not posting to the correct chat?

Messages fail to post correctly if the chat ID alias is missing from telegram-chats.json or if the TELEGRAM_BOT_TOKEN environment variable is not properly loaded from .skill.config before executing the curl request.