{"id":19019371,"url":"https://github.com/ditsuke/wa-member-migrate","last_synced_at":"2025-06-15T02:32:27.355Z","repository":{"id":133707044,"uuid":"562061498","full_name":"ditsuke/wa-member-migrate","owner":"ditsuke","description":"Unpackaged set of functions I used in the process of migrating a WhatsApp group","archived":false,"fork":false,"pushed_at":"2023-04-09T15:37:56.000Z","size":100,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-21T18:15:19.941Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ditsuke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-05T07:18:03.000Z","updated_at":"2022-11-08T21:33:32.000Z","dependencies_parsed_at":"2024-06-11T17:22:48.414Z","dependency_job_id":"2550fce8-83cf-4e6d-b089-1330977b99a2","html_url":"https://github.com/ditsuke/wa-member-migrate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ditsuke/wa-member-migrate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ditsuke%2Fwa-member-migrate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ditsuke%2Fwa-member-migrate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ditsuke%2Fwa-member-migrate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ditsuke%2Fwa-member-migrate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ditsuke","download_url":"https://codeload.github.com/ditsuke/wa-member-migrate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ditsuke%2Fwa-member-migrate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259912411,"owners_count":22931059,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T20:12:07.925Z","updated_at":"2025-06-15T02:32:27.300Z","avatar_url":"https://github.com/ditsuke.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wa-member-migrate\n\nA simple JavaScript program to migrate members from one WhatsApp group to another using the [wa-automate](https://github.com/open-wa/wa-automate-nodejs) library.\n\n## Installation\n\nTo use this program, you need to have Node.js installed on your computer. Clone or download this repository and navigate to the directory in your terminal. Run the following command to install the required dependencies:\n\n```\nyarn install\n```\n\n## Usage\n\nThe `migrateMembers` function in `main.js` can be used to migrate members from one group to another. You need to provide the `sourceGroupId` and `targetGroupId` as parameters to this function. For example:\n\n```javascript\nconst client = await initClient();\nconst sourceGroupId = '1234567890@g.us'; // replace with your source group ID\nconst targetGroupId = '0987654321@g.us'; // replace with your target group ID\nawait migrateMembers(client, sourceGroupId, targetGroupId);\n```\n\nTo identify the group IDs of your WhatsApp groups, you can use the `printMatchingGroups` function. This function takes a `keyword` parameter and prints the names and IDs of all groups whose names match the keyword. For example:\n\n```javascript\nconst client = await initClient();\nawait printMatchingGroups(client, 'ALiAS'); // replace ALiAS with your keyword\n```\n\nThis will print the names and IDs of all groups whose names contain the word \"family\".\n\nNote that this program adds members to the target group in batches of 10 with a 5-second delay between batches to avoid being blocked by WhatsApp. If any errors occur while adding members, they will be logged to the console.\n\n## License\n\nThis project is licensed under the MIT License. See the `LICENSE` file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fditsuke%2Fwa-member-migrate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fditsuke%2Fwa-member-migrate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fditsuke%2Fwa-member-migrate/lists"}