Files
2026-07-23 20:36:13 +08:00

64 lines
2.9 KiB
Markdown
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
##
- Github
https://github.com/danni-cool/wechatbot-webhook
使用docker部署在108上,群晖NAS总是不能拉取镜像,跟fnOS-1设置同样的镜像源,搞不懂!
- docker compose.yml
```
version: '3.8'
services:
wxBotWebhook:
image: dannicool/docker-wechatbot-webhook
container_name: wxbot_app
volumes:
- ./wxBot_logs:/app/log
ports:
- "3001:3001"
environment:
- LOG_LEVEL=info # 调整容器输出级别(不影响日志文件输出等级)运行时提示的消息等级(默认info,debug级别会输出详细的日志)
# - DISABLE_AUTO_LOGIN=true # 如果不希望登录一次后就记住当前账号,想每次都扫码登陆,填 true
# - ACCEPT_RECVD_MSG_MYSELF=true # 如果希望机器人可以自己接收消息,填 true
# - RECVD_MSG_API= # 如果想自己处理收到消息的逻辑,在下面填上你的API地址, 默认为空
# - LOGIN_API_TOKEN= # 登录地址Token访问地址: http://localhost:3001/login?token=[LOCAL_LOGIN_API_TOKEN]
restart: unless-stopped
```
- 调试教程
https://blog.csdn.net/weixin_42398461/article/details/137611250
本地部署端口4001,完成后查看日志,出现二维码,手机扫码登录!这个动作很危险!
https://github.com/danni-cool/wechatbot-webhook
作者讲得也很详细,只是我的2个微信刚扫码成功就被封了,15天后才解禁!
发送消息:
```
curl --location 'http://localhost:3001/webhook/msg/v2?token=[YOUR_PERSONAL_TOKEN]' \
--header 'Content-Type: application/json' \
--data '{
"to": "testUser",
"data": { "content": "你好👋" }
}'
```
- 请注意使用正确的 token
真正的 token 是图1 中红线标注的部分(token是会变的),用真正的token代替“[YOUR_PERSONAL_TOKEN]”
- <font color="#00b050">testUser——目标微信用户 </font>
请注意,此处的 testUser 是目标微信的`昵称`,不是目标微信的微信号
这里有个问题:昵称是唯一的吗?否则相同昵称的人都会收到?
- 多用户登录方法
https://blog.csdn.net/gitblog_07481/article/details/148467323?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-1-148467323-blog-137611250.235^v43^pc_blog_bottom_relevance_base9&spm=1001.2101.3001.4242.2&utm_relevant_index=3
https://blog.csdn.net/weixin_44510171/article/details/144000124?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-0-144000124-blog-137611250.235^v43^pc_blog_bottom_relevance_base9&spm=1001.2101.3001.4242.1&utm_relevant_index=2
- AI助理
https://www.53ai.com/news/OpenSourceLLM/2024090596840.html
要点:部署wechatbot服务,再接入**Dify**自动化工作流的消息节点,打造智能的 AI 助理,核心就是RECVD_MSG_API
7月10号 微信官方开始封号。。。
我不幸中招!😂😅
关我15天,预计7.26解禁。。。