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

统计群成员数据发生错误 #3

Closed
LoCCai opened this issue Jun 29, 2022 · 5 comments
Closed

统计群成员数据发生错误 #3

LoCCai opened this issue Jun 29, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@LoCCai
Copy link

LoCCai commented Jun 29, 2022

如题,只能一个一个的遍历获取群成员发言
想问一下如何直接获取一个群每日发言列表

@MeetWq
Copy link
Member

MeetWq commented Jun 29, 2022

get_message_records 不指定 user_ids 的话就是不限成员呀

@MeetWq
Copy link
Member

MeetWq commented Jun 29, 2022

可以参考 词云插件

@LoCCai
Copy link
Author

LoCCai commented Jun 29, 2022

会报错

@LoCCai
Copy link
Author

LoCCai commented Jun 29, 2022

for a in members_list:
messages = await get_message_records(
user_ids=[a['user_id']],
group_ids=[str(group_id)],
exclude_user_ids=[str(bot_self_id)],
time_start=time_start,
time_stop=time_stop,
plain_text=True)

@LoCCai
Copy link
Author

LoCCai commented Jun 29, 2022

我现在通过这样的方式来进行遍历,获取每个群成员的发言,当我不指定user_ids时,返回的是一个所有成员发言的列表。但是我需要的可能是一个字典,包含每个人的userid和消息List...

@MeetWq MeetWq added the enhancement New feature or request label Jun 29, 2022
@MeetWq MeetWq closed this as completed Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants