-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 ChatHistory messages #1679
Comments
This issue was originally published at wechaty/wechaty-puppet-padchat#223 |
I'm working on some projects extracting ChatHistory messages. Only this is solved could my solution move on. If so, I'll be horned to file a PR. I can confirm the newly added CdnManager in padpro could be used to download attachment files, but not images. |
@jijiechen thank you very much for this new feature purpose, it's very clear that we will definitely welcome this new feature. There will be some more details need to be discussed, like how can we separate the chat history into messages. However, I agree that ChatHistory will be a good name for Wechaty to deal with this problem, I'd like to add this new design to the Wechaty framework, and the underlining Puppet base class. A more detail design will be welcome and then we will be able to discuss more based on that. |
Thanks for the reply. If interested, you may try it now with a padchat token or a padpro token placed in |
Your project based on wechaty is awesome! I will look into it when I have time and get back to you. |
does wechaty support chathistory now? |
@jijiechen really cool project mate! Happened to be working on a similar feature that relies on WeChat's ChatHistory created via I think right now it can be good to have a So at least we have something built-in in WeChaty for devs to easily work with Highly recommend @jijiechen to to do the honors of filing a PR since from what I see 95% of the |
I'll try to spend some time on this in one or two weeks time. |
@jijiechen looking forwards to it! I did some testing and noticed the following two things:
Haven't tried it out so not sure how well the current implementation of the parser handles it These two aside I don't think there are any other edge cases :) and once again thanks for the parser! 👍 |
Hi, @jijiechen! I'm Dosu, and I'm helping the Wechaty team manage their backlog. I wanted to let you know that we are marking this issue as stale. From what I understand, you requested a new feature in Wechaty to support reading and extracting sub-messages from a ChatHistory message. There have been some discussions and suggestions from other users and maintainers on how to implement this feature. You mentioned that you plan to work on it in the next one or two weeks. Before we proceed, we would like to confirm if this issue is still relevant to the latest version of the Wechaty repository. If it is, please let us know by commenting on this issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days. Thank you for your contribution, and we look forward to hearing from you soon! Best regards, |
I didn't use provided issue template since this is an enhancement request instead of an issue.
Wechaty works well for many types of messages including
Text
,Image
,Video
, etc. I'm here to ask for a new feature of supporting the reading and extracting sub-messages from aChatHistory
message forwarded from other conversations.A ChatHistory message is generated by following steps:
Multiselect
(It is nowSelect
on newer versions of WeChat)Forward
icon on the bottom-left of the toolbar on the bottom of screenCombine and forward
and choose a contact to forward toChatHistory message is an efficient way for archiving information. So it'll be nice if Wechaty could provide the functionality out of box to extract this history message as some kind of structured data.
Note that, I can already get an XML payload from
message.text()
method (attached at the end), so it's already possible to analyze forwarded text messages on top of current APIs. But there are two major problems:So here I'm providing two possible implementation paths:
Here is an example of a ChatHistory message:
Hope it helps and look forward to your response.
The text was updated successfully, but these errors were encountered: