Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

获取监听对象的群聊成员的时候一直报超找超时查找不到,在微信主窗口不会这种情况 #284

Open
LionWF opened this issue Oct 17, 2024 · 0 comments

Comments

@LionWF
Copy link

LionWF commented Oct 17, 2024

from wxauto import WeChat

wx = WeChat()
listen_list = [']
for i in listen_list:
wx.AddListenChat(who=i)

msgs = wx.GetListenMessage()
for chat in msgs:
one_msgs = msgs.get(chat) # 获取消息内容
for msg in one_msgs:
if msg.type == 'sys':
print(f'【系统消息】{msg.content}')
elif msg.type == 'friend':`
chat.members=chat.GetGroupMembers() #此处无法获取到

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant