The Node.js SDK re-exports the WAJS namespace for TypeScript. This reference describes types from WA-JS 4.8.5-rc.0 . For operations available on a connected Node.js client, see Whatsapp . For functions running inside WhatsApp Web, see the WA-JS browser API .
Defined in node_modules/@wppconnect/wa-js/dist/chat/events/eventTypes.d.ts:22
Properties
chat.active_ chat
Defined in node_modules/@wppconnect/wa-js/dist/chat/events/eventTypes.d.ts:33
chat.active_ filter
"chat.active_filter" : Required < ChatFilter >
Defined in node_modules/@wppconnect/wa-js/dist/chat/events/eventTypes.d.ts:51
chat.live_ location_ end
Defined in node_modules/@wppconnect/wa-js/dist/chat/events/eventTypes.d.ts:159
chat.live_ location_ start
"chat.live_location_start" : { accuracy ?: number ; chat : WAJS . whatsapp . Wid ; degrees ?: number ; id : WAJS . whatsapp . Wid ; lat : number ; lng : number ; msgId : MsgKey ; shareDuration : number ; speed ?: number ; }
Defined in node_modules/@wppconnect/wa-js/dist/chat/events/eventTypes.d.ts:131
chat.live_ location_ update
"chat.live_location_update" : { accuracy ?: number ; comment : string ; degrees ?: number ; elapsed : number ; id : WAJS . whatsapp . Wid ; lastUpdated : number ; lat : number ; lng : number ; speed ?: number ; }
Defined in node_modules/@wppconnect/wa-js/dist/chat/events/eventTypes.d.ts:145
chat.msg_ ack_ change
Defined in node_modules/@wppconnect/wa-js/dist/chat/events/eventTypes.d.ts:108
chat.msg_ edited
Defined in node_modules/@wppconnect/wa-js/dist/chat/events/eventTypes.d.ts:126
chat.msg_ revoke
Type Declaration
type : "revoke" | "sender_revoke" | "admin_revoke"
Defined in node_modules/@wppconnect/wa-js/dist/chat/events/eventTypes.d.ts:88
chat.new_ chat
Defined in node_modules/@wppconnect/wa-js/dist/chat/events/eventTypes.d.ts:62
chat.new_ message
Defined in node_modules/@wppconnect/wa-js/dist/chat/events/eventTypes.d.ts:73
chat.new_ reaction
"chat.new_reaction" : { id : MsgKey ; msgId : MsgKey ; orphan : number ; orphanReason : any ; reactionText : string ; read : boolean ; sender : WAJS . whatsapp . Wid ; timestamp : number ; }
Type Declaration
orphan : number
orphanReason : any
reactionText : string
read : boolean
timestamp : number
Defined in node_modules/@wppconnect/wa-js/dist/chat/events/eventTypes.d.ts:174
chat.poll_ response
Defined in node_modules/@wppconnect/wa-js/dist/chat/events/eventTypes.d.ts:214
chat.presence_ change
"chat.presence_change" : { id : WAJS . whatsapp . Wid ; isContact ?: boolean ; isGroup : boolean ; isOnline : boolean ; isUser : boolean ; participants ?: { id : string ; shortName : string ; state : string } [] ; shortName : string ; state : string ; t : number ; }
Defined in node_modules/@wppconnect/wa-js/dist/chat/events/eventTypes.d.ts:196
chat.unread_ count_ changed
"chat.unread_count_changed" : { chat : ChatModel ; previousUnreadCount : number ; unreadCount : number ; }
Type Declaration
previousUnreadCount : number
unreadCount : number
Defined in node_modules/@wppconnect/wa-js/dist/chat/events/eventTypes.d.ts:74
chat.update_ label
Defined in node_modules/@wppconnect/wa-js/dist/chat/events/eventTypes.d.ts:224
Triggered when change the active chat