Comments (2)
转发消息可以使用 wxpy 内置的转发功能:
http://wxpy.readthedocs.io/zh/latest/messages.html#wxpy.Message.forward
对于消息关联的问题,可以把小冰当作资源来使用
- 注册小冰的消息,收到的消息加入到队列(Queue)
- 队列的另一端,在处理消息时,需要设定两个阈值:有效连续时间、回复超时
其中有效连续时间,表示获取到一条回复后,队列内 N 秒内又出现了新消息,但无人认领(没有其他人发起请求),那么回复给最后一个请求的人;
而回复超时,则表示一条请求后,N 秒内没有回复,那么久表示没有回复(或其他问题导致失败)。
不过即便按照上面的方式执行,“上下文关联”的问题,仍然是无解的。
比如问小冰“我上句话说了啥”,小冰可能回复其他人说的话。
from wxpy.
谢谢大佬! ^_^
from wxpy.
Related Issues (20)
- 完全沒有辦法給自己發訊息,求救
- 我尝试微信群同步信息的功能,但是图片和视频有时同步不成功,有没有办法。 HOT 1
- 微信群同步文本视频图片信息,但是信息顺序错乱,有没有办法。 HOT 1
- 基于pc微信做吗?
- 微信群接收一条消息后怎样暂停接收该微信群的其他消息,等处理完后重新开启对该微信群的消息接收 HOT 1
- 无法接受到群消息
- 互助讨论群 HOT 1
- 不到一天就退出登录了,要怎么办 HOT 6
- wxpy 在python3.8下出错。 HOT 3
- Cannot auto reply with @bot.register()
- 【研发必看!!!】做机器人,小助手,营销系统,客服系统,监管系统的可以 看下这个API方案 https://www.wkteam.cn/ HOT 1
- Support for ItChat 1.3+
- 是不是不能用了? HOT 4
- send_video 为什么报错raise ResponseError(err_code=err_code, err_msg=err_msg)
- 【研发必看!!!】做机器人,小助手,营销系统,客服系统,监管系统的可以 看下这个API方案 https://www.wkteam.cn/
- 微信扫码后出现,“KeyError:pass_ticket"
- 散了吧,微信已屏蔽 HOT 3
- 【研发必看!!!】做机器人,小助手,营销系统,客服系统,监管系统的可以 看下这个API方案 https://www.wkteam.cn/ #458
- 曝光一个是骗子~大家小心!!!【往事随风】【绝版先生】 HOT 2
- 现在能用什么办法监控到微信群消息吗
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wxpy.