Skip to content

Importing WhatsApp group chats without their participants #49

Description

@Terrance

(I'm not sure if this is the right place to ask as the WhatsApp import stuff appears to be across two other forks, but it's present in the build from this repo so is presumably being maintained in some capacity here.)

I've got a handful of WhatsApp groups who have since moved to platforms other than WhatsApp and Signal, but I'd like to keep a copy of the message history in Signal. I created empty groups matching the names of these groups, and the import option correctly matches them up, but only my own messages are imported -- presumably this is because the other participants are not in the group. Is there a way to get their past messages imported too, without adding them to my copy of the Signal chats?

Activity

  1. johanw666 commented on May 11, 2022

    @johanw666
    Owner

    I didn't write that code so I'd have to look at that, but I will have to have it updated anyway now that WhatsApp introduced reactions too.

  2. Terrance commented on Mar 1, 2024

    @Terrance
    Author

    Did this get anywhere by the way? I recently had to crack open my backup WhatsApp database in order to find a message from an old group chat, so I'd still be interested in importing these to Signal.

    At a guess, it's to do with the recipient resolution here:

    Recipient threadRecipient = Recipient.resolved(threadRecipientId);

    From digging a few layers deeper, I can't see it trying to create new recipients during group import, only resolve existing ones.

  3. johanw666 commented on Mar 1, 2024

    @johanw666
    Owner

    I can take a look but to be honest I have no time to maintain this import function at the moment. It could very well not work due to a changed WhatsApp database structure.

  4. Terrance commented on Mar 1, 2024

    @Terrance
    Author

    Would supporting the import of plain-text chat backups be a better option? I grabbed copies of those too, and I've seen other apps (e.g. Telegram) use them for migrating messages around too.

    The directory structure is a folder per chat, named after the recipient or group, with attachments and the chat log inside:

    First Last/
        IMG-20240229-WA0000.jpg
        IMG-20240229-WA0001.jpg
        WhatsApp Chat with +44 7766 543210.txt
    Group Name/
        WhatsApp Chat with Group Name.txt
    

    The chat log itself looks like this:

    29/02/2024, 12:33 - Your security code with +44 7766 543210 changed. Tap to learn more.
    29/02/2024, 12:34 - My Name: Outgoing message
    29/02/2024, 12:35 - +44 7766 543210: Incoming message
    With multple lines
    29/02/2024, 12:36 - ​My Name: IMG-20240229-WA0000.jpg (file attached)
    29/02/2024, 12:37 - +44 7766 543210: <Media omitted>
    29/02/2024, 12:38 - ​My Name: IMG-20240229-WA00001.jpg (file attached)
    Caption for attachment
    
  5. johanw666 commented on Mar 1, 2024

    @johanw666
    Owner

    I think it would be easier to convert that to xml and use the existing plaintext import. But that won't work for groups, you would get the messages in a 1-1 conversation and not the group structure.

  6. Terrance commented on Mar 1, 2024

    @Terrance
    Author

    It also wouldn't include media, which is more pressing as there's a lot of attachments that ideally I'd keep associated with their chats. Between this and a couple of chats from another app (one that provides its own backup format that I intend to massage into something suitable for Signal), it seems like the WA database is still the way to go, but groups without the message authors as members can't currently be imported in any of the flows.

  7. github-actions commented on Apr 3, 2026

    @github-actions

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

  8. Terrance commented on Apr 3, 2026

    @Terrance
    Author

    I still have a couple of past group chats buried in an old WhatsApp database that would be nice to import and archive in Signal.

  9. github-actions commented on Jun 3, 2026

    @github-actions

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

  10. Terrance commented on Jun 3, 2026

    @Terrance
    Author

    Still interested...

  11. github-actions commented on Aug 4, 2026

    @github-actions

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

  12. Terrance commented on Aug 4, 2026

    @Terrance
    Author

    Still interested...

  13. github-actions commented on Oct 4, 2026

    @github-actions

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

  14. Terrance commented on Oct 4, 2026

    @Terrance
    Author

    Still interested...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions