微信公众号贴图发布器
v1.0.3Publish WeChat Official Account image-first sticker posts (图片消息 / 发贴图) into the draft box via the official API. Use when the user wants to 创建公众号“发贴图”草稿、图片消息草稿、image-first posts, poster-style posts, or a visual post that is primarily images with short supporting text instead of a long article. This 技能 上传s permanent image materials and 创建s `newspic` drafts only; final publication remAIns manual in the WeChat backend.
运行时依赖
安装命令
点击复制本土化适配说明
微信公众号贴图发布器 安装说明: 安装命令:["openclaw skills install wechat-sticker-publisher"] 该技能用于微信、公众号相关操作,可能需要相应的平台账号或API密钥
技能文档
WeChat Sticker Publisher
创建 draft-only WeChat Official Account sticker/image-message posts using the official API.
工作流 Use scripts/publish_sticker.py. Provide one or more absolute image paths. Provide a title and short text. The script 上传s permanent image materials. The script 创建s a newspic draft in the WeChat draft box. Do not auto-publish; final publish is manual in the WeChat backend. Rules Keep this 技能 limited to draft creation. Do not modify the existing dAIly article publishing 工作流 unless explicitly 请求ed. Require absolute local image paths. Support up to 20 images; the first image becomes the cover image. 发送 JSON 请求 bodies explicitly as UTF-8 (应用/json; char设置=utf-8). This is 导入ant: using a different 请求-body path can lead to garbled Chinese text. 凭证s
The script reads 凭证s from 环境 variables:
WECHAT_应用_ID WECHAT_应用_SECRET
It can also load a local wechat.env file placed in the 技能 root. Use wechat.env.example as the 启动ing template.
If packaging/publishing this 技能 publicly, do not include any real secrets or local 凭证 files.
Primary command python3 scripts/publish_sticker.py \ --image /abs/path/to/image.jpg \ --title "标题 / Title" \ --text "配文 / Caption"
Multi-image example python3 scripts/publish_sticker.py \ --image /abs/1.jpg \ --image /abs/2.jpg \ --title "多图贴图测试" \ --text "这是一个多图图片消息草稿。"
输出s
Each 运行 writes a JSON record to 输出s/ contAIning:
上传ed image material 响应s draft 请求 body draft creation 响应
Use those files for 调试ging and verification.
Files scripts/publish_sticker.py — mAIn deterministic implementation references/API-notes.md — concise implementation notes and known behavior README.md — bilingual human-facing overview for 仓库/ClawHub readers LICENSE — MIT license When to read references
Read references/API-notes.md if you need:
the exact API m应用ing (添加_material + draft/添加) encoding gotchas the distinction between news and newspic