Skip to content

[BUG] New Group JID #144

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

Open
preiser-at opened this issue Mar 29, 2025 · 8 comments
Open

[BUG] New Group JID #144

preiser-at opened this issue Mar 29, 2025 · 8 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@preiser-at
Copy link

preiser-at commented Mar 29, 2025

  • WhatsApp version: 2.25.8.84
  • OS: Android - 15
  • Platform: Windows 10 64-bit
  • Exporter's branch and version: main (2025/02/16)
  • Python version installed: 3.9.13 (32-bit)

I get the following error in cmd when trying to use the tool.

Image

After the error the decrypted file msgstore.db exists in the working dir. But trying to repeat with "wtsexporter -a" brings the same error:

Image

working directory:

Image

Image
thumbnails directory created by the exporter tool

Image

@preiser-at preiser-at changed the title [BUG] [BUG] Error when running and no output at all Mar 29, 2025
@preiser-at preiser-at changed the title [BUG] Error when running and no output at all [BUG] Error when running and no html output at all Mar 29, 2025
@KnugiHK KnugiHK added the bug Something isn't working label Mar 29, 2025
@KnugiHK
Copy link
Owner

KnugiHK commented Mar 29, 2025

The JID in question ends with @g.us, which indicates it's a group chat. The format of JID for a group chat has traditionally been [creator phone number]-[creation timestamp]@g.us. In your case, the dash is missing, which is likely causing the error in media().

After a quick search, it seems there's a possibility that WhatsApp has removed the dash in newer versions. Therefore, I believe removing the dash from the JID during processing is a reasonable solution and should fix the issue you're encountering.

@KnugiHK KnugiHK self-assigned this Mar 29, 2025
@preiser-at
Copy link
Author

OK and how can I remove the dash from the JID during processing? I am not sure if I understand what you describe. There i a problem with a group chat in my whatsapp? But which one? And how to remove anything during processing on the Windows PC?

@KnugiHK
Copy link
Owner

KnugiHK commented Mar 29, 2025

OK and how can I remove the dash from the JID during processing? I am not sure if I understand what you describe. There i a problem with a group chat in my whatsapp? But which one? And how to remove anything during processing on the Windows PC?

One workaround could be to modify your database and remove all the dashes. However, it's recommended to wait for an official fix instead.

@preiser-at
Copy link
Author

OK so it is a real issue with you exporter and I will wait for a future version? Thanks a lot for your ultraquick answers :-)

@preiser-at
Copy link
Author

preiser-at commented Mar 29, 2025

You are completely right, here is the JID table, assuming the higher the ID the newer the groupchat it seems whatsapp has switched some time ago

Image

@KnugiHK KnugiHK added the enhancement New feature or request label Mar 29, 2025
@KnugiHK KnugiHK changed the title [BUG] Error when running and no html output at all [BUG] New group JID Mar 29, 2025
@KnugiHK KnugiHK changed the title [BUG] New group JID [BUG] New Group JID Mar 29, 2025
@KnugiHK
Copy link
Owner

KnugiHK commented Mar 29, 2025

Yeah, instead of removing the dash I had previously guessed, it seems the JID is now being randomly generated or purely time-based maybe?

@KnugiHK
Copy link
Owner

KnugiHK commented Mar 29, 2025

Yeah, instead of removing the dash I had previously guessed, it seems the JID is now being randomly generated or purely time-based maybe?

If this is the case, the dash shouldn't be the burden for the exporter...

@preiser-at
Copy link
Author

Seems so, yeah. Thanks for your work, looking forward to the new version to test your exporter and get a backup of my whatsapp on my PC :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants