← 返回
沟通协作 Key

push-server-py

Send notifications to WeCom (企业微信) users via OpenAPI push service(https://github.com/qingzhou-dev/push-server). Supports TEXT, MARKDOWN, TEXT_CARD, and NEWS...
Send notifications to WeCom (企业微信) users via OpenAPI push service(https://github.com/qingzhou-dev/push-server). Supports TEXT, MARKDOWN, TEXT_CARD, and NEWS...
es-v
沟通协作 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 471
下载
💾 83
安装
1
版本
#latest

概述

Push-Server WeCom Notification

Send notifications to WeCom (企业微信) users via the Push Server OpenAPI.

This skill is designed for push notifications powered by Push Server. It can also be adapted for other webhook notification services by modifying notify.py .

Supports TEXT, MARKDOWN, TEXT_CARD, and NEWS message types.

Acknowledgements

The current version was collaboratively refined with AI assistance. Special thanks to:

  • OpenClaw — the agent framework that powers this skill
  • Qwen — AI coding assistant

Configuration

Two environment variables are required. Set them in openclaw.json:

"skills": {
  "entries": {
    "push-server-py": {
      "apiKey": "your-api-key-here",
      "env": {
        "QYWX_PUSH_URL": "https://push.wechat.com"
      }
    }
  }
}
  • apiKey → automatically injected as QYWX_PUSH_API_KEY (via primaryEnv)
  • env.QYWX_PUSH_URL → the base URL of the push service

Usage

python3 {baseDir}/notify.py '<JSON>'

Environment Variables

VariableRequiredSourceDescription
---------------------------------------------------------------------------------------------------
QYWX_PUSH_API_KEYyesskills.entries.*.apiKeyAPI Key for authentication (X-API-Key)
QYWX_PUSH_URLyesskills.entries.*.envBase URL of the push service

Request Parameters

ParamTypeRequiredDefaultDescription
---------------------------------------------------------------------------------------------------------
toUserstryes-Target user(s), pipe-separated, e.g. `"user1user2"`
msgTypestrnoTEXTTEXT / MARKDOWN / TEXT_CARD / NEWS
contentstryes (TEXT / MARKDOWN)-Message content
titlestrTEXT_CARD only-Card title
descriptionstrTEXT_CARD only-Card description
urlstrTEXT_CARD only-Card link URL
btnTextstrTEXT_CARD onlyView DetailsCard button text
articleslist[obj]NEWS only-List of article objects (see below)

Article Object (NEWS)

ParamTypeRequiredDescription
------------------------------------------
titlestryesArticle title
urlstryesArticle link
descriptionstrnoArticle description
picUrlstrnoArticle cover image

Examples

# Send TEXT notification
python3 {baseDir}/notify.py '{"toUser":"user1","content":"System is running normally.","msgType":"TEXT"}'

# Send MARKDOWN notification
python3 {baseDir}/notify.py '{
  "toUser": "user1|user2",
  "msgType": "MARKDOWN",
  "content": "## 🚨 Alert\n\n> CPU usage exceeds **90%**"
}'

# Send TEXT_CARD notification
python3 {baseDir}/notify.py '{
  "toUser": "user1|user2",
  "msgType": "TEXT_CARD",
  "title": "Weekly Report Ready",
  "description": "Click to view this week report.",
  "url": "https://example.com/reports/weekly",
  "btnText": "View Report"
}'

# Send NEWS notification
python3 {baseDir}/notify.py '{
  "toUser": "user1|user2",
  "msgType": "NEWS",
  "articles": [{
    "title": "March Monthly Report",
    "url": "https://example.com/reports/202503",
    "description": "March report is ready for review.",
    "picUrl": "https://example.com/reports/202503/cover.jpg"
  }]
}'

Message Type Reference

msgTypeRequired FieldsDescription
------------------------------------------------------------------
TEXTcontentPlain text message
MARKDOWNcontentMarkdown rich text
TEXT_CARDtitle, description, urlCard message with button
NEWSarticlesNews / articles

Success Response

{
  "success": true,
  "message": "ok",
  "errCode": 0
}

Error Response

{
  "success": false,
  "message": "Send failed: API error: invalid api key (errCode: 401)",
  "errCode": 401
}

Current Status

Fully functional.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 04:06 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

communication-collaboration

Himalaya

lamelas
{"answer":"通过IMAP/SMTP管理邮件的CLI。可在终端使用 `himalaya` 收发、回复、转发、搜索及整理邮件。支持多账户与MML(MIME元语言)编写邮件。"}
★ 68 📥 45,584
communication-collaboration

imap-smtp-email

gzlicanyi
使用IMAP/SMTP读取和发送邮件;检查新/未读邮件、获取内容、搜索邮箱、标记已读/未读、发送带附件的邮件。支持...
★ 113 📥 52,400
communication-collaboration

Slack

steipete
当需要通过 slack 工具从 Clawdbot 控制 Slack 时使用,包括在频道或私信中回复消息或置顶/取消置顶项目。
★ 157 📥 47,676