telegram-notify
Send notifications to Telegram via Bot API
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Send notifications to Telegram via Bot API
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | telegram-notify |
| description | Send notifications to Telegram via Bot API |
| version | 1.0.0 |
| tags | ["notification","telegram","messaging","api"] |
| author | Agent Zero |
| trigger_patterns | ["send telegram","telegram notification","notify telegram","telegram message"] |
Send notifications and messages to Telegram chats using the Telegram Bot API.
https://api.telegram.org/bot<YOUR_TOKEN>/getUpdatesTELEGRAM_BOT_TOKEN - Your bot token from BotFatherTELEGRAM_CHAT_ID - The chat ID to send messages toSet environment variables and run:
export TELEGRAM_BOT_TOKEN="your-bot-token-here"
export TELEGRAM_CHAT_ID="your-chat-id-here"
python /a0/usr/skills/telegram-notify/scripts/send_message.py "Hello World"
Or inline:
TELEGRAM_BOT_TOKEN="your-bot-token-here" TELEGRAM_CHAT_ID="your-chat-id-here" \
python /a0/usr/skills/telegram-notify/scripts/send_message.py "Hello World"
python /a0/usr/skills/telegram-notify/scripts/send_message.py "Hello World" \
--token "your-bot-token-here" \
--chat-id "your-chat-id-here"
Configure TELEGRAM_BOT_TOKEN as a secret and TELEGRAM_CHAT_ID as a variable in Agent Zero settings, then use:
python /a0/usr/skills/telegram-notify/scripts/send_message.py "Hello World" \
--token "$TELEGRAM_BOT_TOKEN" \
--chat-id "$TELEGRAM_CHAT_ID"
python /a0/usr/skills/telegram-notify/scripts/send_message.py \
"<b>Bold</b> and <i>italic</i> message" \
--token "$TELEGRAM_BOT_TOKEN" \
--chat-id "$TELEGRAM_CHAT_ID" \
--parse-mode HTML
python /a0/usr/skills/telegram-notify/scripts/send_message.py \
"Silent message" \
--token "$TELEGRAM_BOT_TOKEN" \
--chat-id "$TELEGRAM_CHAT_ID" \
--silent
import sys
sys.path.insert(0, '/a0/usr/skills/telegram-notify/scripts')
from send_message import send_message
result = send_message(
text="Hello from Agent Zero!",
bot_token="your-bot-token-here",
chat_id="your-chat-id-here"
)
print(result)
| Option | Description |
|---|---|
message | Required. The message text to send |
--token | Bot token (or set TELEGRAM_BOT_TOKEN env var) |
--chat-id | Target chat ID (or set TELEGRAM_CHAT_ID env var) |
--parse-mode | Formatting: HTML, Markdown, or MarkdownV2 |
--silent | Send without notification sound |
--no-preview | Disable web page preview for links |
The skill uses Telegram Bot API's sendMessage endpoint:
https://api.telegram.org/bot<token>/sendMessagechat_id: Target chat IDtext: Message text to sendparse_mode: HTML or Markdown for formattingdisable_web_page_preview: true to disable link previewsdisable_notification: true to send silentlyYou must provide the bot token using one of these methods:
--token argumentTELEGRAM_BOT_TOKEN environment variableTELEGRAM_BOT_TOKEN in your Agent Zero settings)The chat ID you're using belongs to another bot. Use your personal chat ID or a group chat ID where your bot is a member.
The bot hasn't been started by the user with that chat ID. Message your bot first to initiate the conversation.
scripts/send_message.py - Main script for sending messagesscripts/__init__.py - Python module marker