Comments (6)
需要传入单个用户对象,或用户对象的列表。而不是昵称或微信号。
from wxpy.
举个例子
my_friend = ensure_one(bot.search('某个人的名字'))
my_group.add_members(my_friend)
from wxpy.
非常感谢您这么及时的解答,已解决。
我是当时看您在知乎https://pic4.zhimg.com/v2-2043a6c577c2dc2ff92d49456ff15fc7_b.png里写的是user_name才导致理解错误,不知道是不是有问题
from wxpy.
图中代码并不是我写的…
from wxpy.
不好意思,想当然了~试了一下,是图中作者的问题。
顺便再问一下,用这个扫码登录后选择cache_path=True。然后使用embed阻塞,是不是只要电脑不关,就可以一直保活。微信那边有超时session过期的说法吗
from wxpy.
目前看,掉线通常与网络稳定性和机器人行为有关。
有些行为异常的可能会被踢下线。
我这边至少24小时没问题,没有试过很久的,因为经常更新代码重启测试。
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.