-
Notifications
You must be signed in to change notification settings - Fork 5
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
Support QQ Group message receive & send #13
Comments
Please refer to the below example code and feel free to let me know your questions by replying to this issue. Send room message code example |
how to tell Room.say from Contact.say, since QQ group number and QQ account number can be same? |
roomRawPayload and roomRawPayloadParser has been implemented, and room name of a room message could be shown in terminal.
|
If someone say message in group, and he is not a friend of the bot. To fix this problem. We will add a person's info to |
Have you got the solutions to it? Our current design in Puppet API is using a
That's great, good job!
My suggestion is to use the |
Congratulations! Could you please help us to confirm the QQ account provided by @krapnikkk can work with our QQ ding/dong bot? If we can have the QQ account worked, then I believe we can try to integrate our Friday BOT with QQ soon!
It's a good workaround. I hope we can find a way to deal with it better in the future. |
I reopen this issue because we need to improve the puppet code to better deal with the oicq protocol. According to this link, the QQ number and the group number might be exactly the same. This is a challenge of our current puppet design: we are using a For example, we can add a prefix to achieve that:
We can do the conversion inside the puppet-oicq from and to the OICQ. Please feel free to let me know if you have any questions and good ideas. |
Got it. I try to change to this pattern, a problem is: |
I found that if we use ding-dong bot of Because it called If we use run the puppet directly, bot will reply |
I think commit ae0053e has implemented all of these. And fromId and roomId has been changed as asked above.
|
The code looks good, I believe the problem of that qq and group number can be same can be solved with our latest version of the code. |
I think the problem is of course solved with this commit, because we dispatch private and group message send by prefix https://github.com/wechaty/puppet-oicq/blob/main/src/puppet-oicq.ts#L237-L249 |
Of course. Thank you very much for the clarifying! |
If we use Wechaty to manage our QQ group, we need to support the QQ group message receiving & sending.
Reference source code:
https://github.com/wechaty/wechaty-puppet-wechat/blob/a45a4ab7e20bb9cfc328e904966a550dbdc8e3a0/src/pure-function-helpers/message-raw-payload-parser.ts#L21-L41
Link to
The text was updated successfully, but these errors were encountered: