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

请问如何主动发送信息? #58

Open
TuanZiGit opened this issue Apr 6, 2024 · 1 comment
Open

请问如何主动发送信息? #58

TuanZiGit opened this issue Apr 6, 2024 · 1 comment

Comments

@TuanZiGit
Copy link

在写一个插件,需要在满足特定条件时(不是群消息触发)向指定群直接发送特定信息,请问有什么方法可以实现吗,谢谢!
给出变量:MESSAGE: str (消息) GROUP: int (群号)

@qienoob
Copy link

qienoob commented Jul 26, 2024

我也有同样的问题,目前我的解决方法是Bot下的send_group_message,示例为
await bot.send_group_message( target=群号, message_chain=MessageChain(str类型的消息) )
希望能有所帮助

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

2 participants