Triggered when change the active chat
WPP.on('chat.active_chat', (chat) => { // Your code}); Copy
WPP.on('chat.active_chat', (chat) => { // Your code});
Temporary unsuported by WhatsApp Web Multi-Device
The chat that sended the messeage
Message id of revoke event
Optional
Who sended the ack, only for groups, broadcast and status
On Message edit
Author of message, only for groups
Message id of revoked message
Type of revoke
Triggered when new message is received
WPP.on('chat.new_message', (msg) => { // Your code}); Copy
WPP.on('chat.new_message', (msg) => { // Your code});
Triggered when a new reaction is received
Reaction ID
Message ID that received the reaction
The reaction emoji or empty if removed
WPP.on('chat.new_reaction', (msg) => { // Your code}); Copy
WPP.on('chat.new_reaction', (msg) => { // Your code});
On Poll response
On presence change
On Labels update
Triggered when change the active chat