KnugiHK / WhatsApp-Chat-Exporter

A customizable Android and iOS/iPadOS WhatsApp database parser that will give you the history of your WhatsApp conversations in HTML and JSON. Android Backup Crypt12, Crypt14, Crypt15, and new schema supported.
https://wts.knugi.dev/
MIT License
517 stars 76 forks source link

Feat: Support for WhatsApp Business (iPhone only) #60

Closed andrp92 closed 9 months ago

andrp92 commented 10 months ago

Hello there, @KnugiHK!

I've come across a truly fascinating project—kudos to you! Recently, I encountered a situation where I needed to create a local backup of my WhatsApp business account. Upon exploring the project, I discovered that it didn't quite support this functionality out of the box. However, I took the initiative to tweak a few elements, and voilà, it's now functioning seamlessly.

Feeling quite satisfied with the results, I've decided to take things a step further and collaborate with you on this. I've already initiated a pull request. If there are any suggestions or adjustments you'd like me to implement, please don't hesitate to share. I'm more than willing to lend a hand and make this project even better. Looking forward to working together!

andrp92 commented 10 months ago

Btw, I don't have myself an Android device so I didn't even attempt to implement this for Android. I might need a little help there.

KnugiHK commented 10 months ago

Although the PR does not work for encrypted backup, unencrypted backup should be fine.

I refactored the code a bit. Try again to see if it works for WhatsApp Business in iOS.

PS. I also changed the option from --smb to --business for a more straightforward presentation.

andrp92 commented 10 months ago

@KnugiHK Loved the way you implemented identifiers. It's a lot cleaner and easier to maintain that way 🙌

andrp92 commented 10 months ago

@KnugiHK it did work as expected 🚀. However, there's a weird WhatsApp message that I hadn't seen before: Screenshot 2023-09-11 at 6 30 32 PM

KnugiHK commented 9 months ago

@KnugiHK it did work as expected 🚀. However, there's a weird WhatsApp message that I hadn't seen before:

Can you check what that message is in WhatsApp?

andrp92 commented 9 months ago

@KnugiHK it did work as expected 🚀. However, there's a weird WhatsApp message that I hadn't seen before:

Can you check what that message is in WhatsApp?

Those are old messages that seems to have corrupted when I migrated from android version of WB with a third party application long time ago. New messages (generated on the iPhone) are intact and showing correctly.

KnugiHK commented 9 months ago

@KnugiHK it did work as expected 🚀. However, there's a weird WhatsApp message that I hadn't seen before:

Can you check what that message is in WhatsApp?

Those are old messages that seems to have corrupted when I migrated from android version of WB with a third party application long time ago. New messages (generated on the iPhone) are intact and showing correctly.

Shall we consider it as not related to this PR?

andrp92 commented 9 months ago

@KnugiHK it did work as expected 🚀. However, there's a weird WhatsApp message that I hadn't seen before:

Can you check what that message is in WhatsApp?

Those are old messages that seems to have corrupted when I migrated from android version of WB with a third party application long time ago. New messages (generated on the iPhone) are intact and showing correctly.

Shall we consider it as not related to this PR?

Not at all. That's a corner case that's outside of this module scope.

KnugiHK commented 9 months ago

Great. Will merge it soon.

KnugiHK commented 9 months ago

Thanks for your contribution!

andrp92 commented 9 months ago

Thanks for your contribution!

You are welcome. My pleasure.

Thank you for the follow up and the initiative of creating this project. Good luck!

KnugiHK commented 7 months ago

Released in 0.9.7.