Pustur / whatsapp-chat-parser

A package to parse WhatsApp chats with Node.js or in the browser đź’¬
https://whatsapp-chat-parser.netlify.app
MIT License
158 stars 26 forks source link

System messages are not parsed correctly. #258

Open Rahmican opened 3 weeks ago

Rahmican commented 3 weeks ago

hi, The system messages in the export I added are not parsed correctly. I think WhatsApp changed the format. fyi

WhatsApp Chat - Test.zip

Pustur commented 3 weeks ago

Historically system messages did not have an author, but now it seems like new exports follow some new rules:

[14.08.2024, 21:00:10] My Group Name: ‎Messages and calls are end-to-end encrypted. No one outside of this chat, not even WhatsApp, can read or listen to them.
[14.08.2024, 21:00:10] Boris: Boris created group “My Group Name”
[14.08.2024, 21:00:11] My Group Name: ‎Boris added you
[14.08.2024, 21:01:57] My Group Name: ‎You're now an admin
[14.08.2024, 21:00:12] Boris: Boris changed this group's icon

I guess Whatsapp considers some of these actions as "done by X person" so I think it's fine if we don't consider them as system messages either

I'm not 100% sure my assumptions are correct, this will need some more testing