{"_id":"@aluria/wechat-msg","name":"@aluria/wechat-msg","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aluria/wechat-msg","version":"1.0.0","description":"企业微信群消息推送 Webhook API 的接口封装","keywords":["wechat","bot","sdk","api","notification"],"repository":{"type":"git","url":"git+https://github.com/Wu-Yijun/wechat-message.git"},"license":"MIT","author":{"name":"Aluria"},"type":"module","main":"dist/index.mjs","types":"dist/index.d.mts","scripts":{"build":"tsdown","prepare":"npm run build","test":"node --env-file=.so ./example/api.ts"},"devDependencies":{"@types/node":"^25.5.1","tsdown":"^0.21.7","typescript":"^6.0.2"},"gitHead":"cba8b1a87c6b1cffb9497b29b1023d4cafae7b48","_id":"@aluria/wechat-msg@1.0.0","bugs":{"url":"https://github.com/Wu-Yijun/wechat-message/issues"},"homepage":"https://github.com/Wu-Yijun/wechat-message#readme","_nodeVersion":"25.7.0","_npmVersion":"11.10.1","dist":{"integrity":"sha512-ohORPdA/iV99A82D06CuBIy2jmmuRTIutJ0gYLpn9pJYhMw4IyX/jjq+33dLEHaJJPq+u6UzA13ZjPPrESCO5g==","shasum":"5ca6a04ba0a6dde0d60ee5f6eb6c1bed3c44cf4e","tarball":"https://registry.npmjs.org/@aluria/wechat-msg/-/wechat-msg-1.0.0.tgz","fileCount":5,"unpackedSize":7025,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDhG3Y46r4en3TArAJI07h60IU1pPvKD6tHuH7abL6LZAiEAtA58e16mR4h4iEoDqCDwRIBxq4AbaloqkMb0WKzfQwg="}]},"_npmUser":{"name":"aluria","email":"wuyijun21@mails.ucas.ac.cn"},"directories":{},"maintainers":[{"name":"aluria","email":"wuyijun21@mails.ucas.ac.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/wechat-msg_1.0.0_1775215893904_0.44414837988438594"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-03T11:31:33.665Z","1.0.0":"2026-04-03T11:31:34.040Z","modified":"2026-04-03T11:31:34.302Z"},"maintainers":[{"name":"aluria","email":"wuyijun21@mails.ucas.ac.cn"}],"description":"企业微信群消息推送 Webhook API 的接口封装","homepage":"https://github.com/Wu-Yijun/wechat-message#readme","keywords":["wechat","bot","sdk","api","notification"],"repository":{"type":"git","url":"git+https://github.com/Wu-Yijun/wechat-message.git"},"author":{"name":"Aluria"},"bugs":{"url":"https://github.com/Wu-Yijun/wechat-message/issues"},"license":"MIT","readme":"# 企业微信群 \"消息推送\" 的 webhook 接口封装\r\n> 没啥卵用? 的接口封装\r\n> 评价是有些不如 open-claw 解析接口 [@aluria/wechat-ai-api](https://www.npmjs.com/package/@aluria/wechat-ai-api)\r\n\r\nGithub 仓库地址: [Wu-Yijun/wechat-message](https://github.com/Wu-Yijun/wechat-message)\r\n\r\n可以随时向自己的微信发送通知, 缺点是需要先注册一个企业微信.\r\n\r\n\r\n## 使用方法:\r\n\r\n```ts\r\nimport { Message } from \"@aluria/wechat-msg\";\r\n\r\nconst msg = new Message(process.env.WEBHOOK_KEY);\r\n// 发送文本消息\r\nawait msg.text(\"Hello, this is a text message!\");\r\n// 发送文件\r\nawait msg.file(\"path/to/file.pdf\", \"Rename it(Optional).pdf\");\r\n// 其它的接口包括: 图片, 卡片\r\nmsg.image(...); msg.card(...);\r\n// 富文本, 语音 (仅企业微信能正常查看)\r\nmsg.markdown(...); msg.voice(...);\r\n```\r\n\r\n具体示例参见Github仓库内的代码示例: [example/api.ts](https://github.com/Wu-Yijun/wechat-message/blob/main/example/api.ts)\r\n\r\n## 如何获取你的 webhook key\r\n\r\n打开企业微信的任意一个群聊, 右上角三点设置, 有一条 \"消息推送\", 点击添加. 完成后, 会给你一个链接, 包含 key 字段.\r\n\r\n## LICENSE\r\n\r\nMIT 协议","readmeFilename":"README.md","_rev":"1-ad87b83e4a7eb2347d0eddc83cc1d8f9"}