Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Get Messages from Contact? #715

Open
fabioselau077 opened this issue Jun 28, 2023 · 3 comments
Open

Get Messages from Contact? #715

fabioselau077 opened this issue Jun 28, 2023 · 3 comments

Comments

@fabioselau077
Copy link

How get messages from Contact?

@jaygent
Copy link

jaygent commented Jul 2, 2023

you can implement this functionality yourself
/** history sync, everything is reverse chronologically sorted */
'messaging-history.set': {
chats: Chat[]
contacts: Contact[]
messages: WAMessage[]
isLatest: boolean
}
the first time you connect, you will receive all messages, chats and contacts

@joaroque
Copy link

joaroque commented Jul 5, 2023

@jaygent can you please explain it better?

@salman0ansari
Copy link
Owner

@jaygent can you please explain it better?

when socket connects first time to the whatsapp we receive contacts in an event.
we have to save contacts in db so we can retrieve it later.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants