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

机器人如何获取QQ群内用户发送的文件? #228

Open
Westlife1002 opened this issue Feb 19, 2025 · 0 comments
Open

机器人如何获取QQ群内用户发送的文件? #228

Westlife1002 opened this issue Feb 19, 2025 · 0 comments

Comments

@Westlife1002
Copy link

目前监听群消息的方法:

    async def on_group_at_message_create(self, message: GroupMessage):
        print("收到群消息!!!!:", message.content)

目前这个方法,只能监听到专门@机器人的文字消息和图片附件(截图可以复制到QQ聊天对话框中和文字一并发送)。但群成员发送其他文档,比如PDF、EXCEL、WORD文档,发送时是无法@机器人的,只能直接发送到群里。这时候机器人无法监听和获取到该文件。

如何让QQ机器人能够监听和捕捉到群内成员发送的群文件?

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