Auties00 / Cobalt

Standalone unofficial fully-featured Whatsapp Web and Mobile API for Java and Kotlin
MIT License
616 stars 180 forks source link

Retrieving ALL Messages #398

Closed BasselAshi closed 8 months ago

BasselAshi commented 9 months ago

How do I retrieve all in a chat given that it has probably over 100k messages?

Auties00 commented 9 months ago

How do I retrieve all in a chat given that it has probably over 100k messages?

  • I attempted using WebHistoryLength with no changes appearing
  • I could not find any paging implementation for messages() or a different way of retrieving older messages than the ones provided

Good question, I think it can be done using the history sync config field. I'll push it when cobalt 0.1 is ready. Still I can't guarantee it, it's up to WhatsApp's servers to send the messages

Auties00 commented 9 months ago

I can confirm that it works, I'll push out this feature soon. It could still be limited tho. It will be available for everyone in Cobalt 0.1