Get labels for chat
Label IDs
Adds label for the chats
Adds label for the message
modify a chat -- mark unread, read etc. lastMessages must be sorted in reverse chronologically requires the last messages till the last message received; required for archive & unread
Optional
fromTimestamp: string | numberOptional
jid: stringaccept a GroupInviteMessage
Rest
...args: [key: string | proto.IMessageKey, inviteMessage: IGroupInviteMessage]Optional
description: stringlogout & invalidate connection
Optional
msg: stringlog & process any unexpected errors
Rest
...jids: string[]the jid to subscribe to
Optional
tcToken: Buffertoken for subscription, use if present
fetch the profile picture of a user/group type = "preview" for a low res picture type = "image for the high res picture"
Optional
timeoutMs: numbersend a query, and wait for its response. auto-generates message ID if not provided
Optional
timeoutMs: numberBulk read messages. Keys can be from different chats & participants
Removes label for the chat
Removes label for the message
remove the profile picture for yourself or a group
Optional
registrationOptions: RegistrationOptionsRest
...args: [collections: readonly ("critical_block" | "critical_unblock_low" | "regular_high" | "regular_low" | "regular")[], isInitialSync: boolean]send a binary node
Optional
toJid: stringsend a raw buffer
generic send receipt function used for receipts of phone call, read, delivery etc.
Correctly bulk send receipts to multiple chats, participants
update the profile picture for yourself or a group
update the profile status for yourself
generates and uploads a set of pre-keys to the server
Rest
...args: [msg: IWebMessageInfo, type: MessageUpsertType]Waits for the connection to WA to reach a state
Optional
timeoutMs: numberWait for a message with a certain tag to be received
the message tag to await
timeout after which the promise will reject
Get all available labels for profile
Keep in mind that the list is formed from predefined tags and tags that were "caught" during their editing.
Get labels for message
Label IDs
loads messages from the store, if not found -- uses the legacy connection
Generated using TypeDoc
Retrieves a chat object by its ID.