← 返回
未分类 中文

Telegram Topic Message Sender

Wrap sending a Telegram message to a fixed topic into one script call. Use when user wants to quickly send notifications/messages to a specific Telegram topi...
将发送 Telegram 消息到固定主题封装为一次脚本调用。适用于用户希望快速向特定 Telegram 主题发送通知/消息的场景。
shing19 shing19 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 362
下载
💾 0
安装
1
版本
#latest

概述

Telegram Topic Message Sender

This skill packages Telegram topic messaging into a reusable script.

It now uses openclaw message send directly (no bot token env required).

What it does

  • Send a message to a Telegram supergroup topic (message_thread_id)
  • Supports fixed defaults (chat/topic) so daily use can be one command
  • Uses OpenClaw CLI openclaw message send

Script

  • Path: scripts/send-topic-message.sh

Required env

  • None (uses your configured OpenClaw channel auth)

Optional defaults

  • TG_DEFAULT_CHANNEL: default channel (default telegram)
  • TG_DEFAULT_CHAT_ID: default chat id (e.g. -1003574630717)
  • TG_DEFAULT_TOPIC_ID: default topic id (e.g. 96)

Usage

# 1) Use defaults from env (recommended)
export TG_DEFAULT_CHANNEL='telegram'
export TG_DEFAULT_CHAT_ID='-1003574630717'
export TG_DEFAULT_TOPIC_ID='96'

bash skills/telegram-topic-message-sender/scripts/send-topic-message.sh "测试消息"

# 2) Override target on call
bash skills/telegram-topic-message-sender/scripts/send-topic-message.sh \
  --channel telegram \
  --chat-id -1003574630717 \
  --topic-id 96 \
  "部署完成,已上线 ✅"

Notes

  • Bot must be in the target group and have permission to post.
  • If topic id is wrong, Telegram will return an error.
  • This script only sends plain text; markdown/html parse mode is intentionally not enabled to reduce formatting failures.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-03 10:53 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Ledger Image Entry

shing19
通过图像识别 receipt、订单或发票,提取商家、日期、金额和商品明细,转换为可入账的结构化记录。
★ 0 📥 408

Feishu Wechat Publish

shing19
读取用户可访问的飞书文档,将内容发送至 feishu.shing19.cc,由其发布到微信公众号草稿箱。
★ 0 📥 456

Hook

shing19
诊断并优化文章开头的吸引力,针对标题和首段的8个关键维度,提供具体改进建议和改写方案。
★ 1 📥 402