youfou / wxpy

微信机器人 / 可能是最优雅的微信个人号 API ✨✨
http://wxpy.readthedocs.io
MIT License
13.99k stars 2.38k forks source link

怎样获取群聊所有成员 #354

Open edgeowner opened 5 years ago

zengdamo commented 5 years ago

from wxpy import * bot = Bot(cache_path=True)

groups = bot.groups().search('群名')[0] for member in groups: print(member)

darkSheep404 commented 4 years ago

groups = bot.groups().search('19尔雅吃胖胖')[0] Traceback (most recent call last): File "", line 1, in IndexError: list index out of range