waha icon indicating copy to clipboard operation
waha copied to clipboard

Direct history fetch from WhatsApp servers

Open gergesh opened this issue 4 months ago • 0 comments

As pointed out in https://github.com/devlikeapro/waha/issues/458#issuecomment-3422475229: In some deployments, we periodically clear or prune the WAHA database to save storage space. However, this makes it impossible to later retrieve older messages. It would be extremely useful to have a way to request message history directly from WhatsApp’s servers, similar to what the underlying libraries provide.

Describe the solution you'd like I think that ideally this would become a parameter to GET /api/{session}/chats/{chatId}/messages that would cause a forced re-synchronization to complete before responding.

Additional context whatsmeow exposes this functionality with BuildHistorySyncRequest and baileys with fetchMessageHistory

gergesh avatar Oct 21 '25 09:10 gergesh