Hanson / vbot

微信,企微,机器人,企业微信,企微机器人,微信机器人,小红书,美团,美团爬虫,聚合聊天,RPA,协议,hook,逆向,群发,自动回复,chatgpt,API对接,稳定防封全语言通用,企业定制/SCRM/SAAS专用
MIT License
4.04k stars 707 forks source link

怎么主动给好友发送消息?而不是收到之后回复消息 #271

Open StandOpen opened 5 years ago

liyuze commented 5 years ago

需要开启 swoole 插件。

程序会启动 swoole server ,自己的程序通过 swoole client 连接 swoole server 发送消息即可, server 会调用 api/send 进行发送。

guoxiangke commented 5 years ago

哪位高手能否给一个swoole的例子啊? 我docker+swoole+laravel 搭建好了,不知道怎么搞下一步了

boySang commented 5 years ago

我也想知道,,

guoxiangke commented 5 years ago

自己刚刚研究出来了, 改天我写个文章. 如有需要,加我微信: bluesky_still 提供技术服务

boySang commented 5 years ago

需要开启 swoole 插件。

程序会启动 swoole server ,自己的程序通过 swoole client 连接 swoole server 发送消息即可, server 会调用 api/send 进行发送。

我在vbot配置中开启了swoole,插件也装好了,运营vbot的时候一直提示这个: ][ERROR] https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxsendmsg?pass_ticket=CRsHi%2FM0oT1pm%2BuAOfdbSveZoVJvumeT8kWygQqd1EINJMjsHl9xpfRv6FTD%2FM7hcURL error 35: A PKCS #11 module returned CKR_DEVICE_ERROR, indicating that a problem has occurred with the token or slot. (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) 请问这个要咋处理啊?

还有是用swoole-client咋发送消息啊?麻烦能写个例子我看下吗?