Loading...
Loading...
Posts content to WeChat Official Account draft box via official API. Supports HTML/Markdown input, cover image upload, inline image upload, and draft saving. Use when user asks to publish article draft to WeChat.
npx skill4agent add tentacle-pro/skills baoyu-post-to-wechatscripts/wechat-api.tsbun .agents/skills/baoyu-post-to-wechat/scripts/wechat-api.ts <file> [options].agents/skills/.envWECHAT_APP_ID=...
WECHAT_APP_SECRET=....agents/skills/.envdraft/addmaterial/add_materialthumb_media_idmedia/uploadimgurldraft/addneed_open_comment=1only_fans_can_comment=0draft/addarticle_type=newsthumb_media_idmedia_idcontentmedia/uploadimgmaterial/add_material?type=imagemedia/uploadimg![[...]]uploadimg<img src>thumb_media_iddraft/add.md.html# Basic markdown draft publish
bun .agents/skills/baoyu-post-to-wechat/scripts/wechat-api.ts article.md
# Explicit cover and metadata
bun .agents/skills/baoyu-post-to-wechat/scripts/wechat-api.ts article.md \
--cover Assets/Cover-Images/my-topic/cover.jpg \
--title "标题" \
--author "作者" \
--summary "摘要"
# HTML input
bun .agents/skills/baoyu-post-to-wechat/scripts/wechat-api.ts article.html --cover Assets/cover.jpguploadimg