pedroslopez / whatsapp-web.js

A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
https://wwebjs.dev
Apache License 2.0
15.17k stars 3.62k forks source link

Sync history conversation of the Chat #3281

Closed momokang closed 1 week ago

momokang commented 1 week ago

PR Details

Sync history conversation of the Chat

Description

Able to sync historical message of the Chat

Related Issue

closes #2937

Motivation and Context

After historical messages are synced, you can fetch older messages content, images, attachment and audio.

How Has This Been Tested

User can type !syncHistory to sync the historical message, alternatively, can change the chatId in await client.syncHistory(chatId); to test out

Types of changes

Checklist

momokang commented 1 week ago

@alechkos Thanks for the review, it's amended accordingly