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 .
Interface GetMessagesOptions
Defined in node_modules/@wppconnect/wa-js/dist/chat/functions/getMessages.d.ts:18
Properties
Optionalcount
count ?: number
Defined in node_modules/@wppconnect/wa-js/dist/chat/functions/getMessages.d.ts:19
Optionaldirection
direction ?: "before" | "after"
Defined in node_modules/@wppconnect/wa-js/dist/chat/functions/getMessages.d.ts:20
Optionalid
id ?: string
Defined in node_modules/@wppconnect/wa-js/dist/chat/functions/getMessages.d.ts:21
Optionalinclude Call Messages
includeCallMessages ?: boolean
Defined in node_modules/@wppconnect/wa-js/dist/chat/functions/getMessages.d.ts:24
media ?: "image" | "document" | "url" | "all"
Defined in node_modules/@wppconnect/wa-js/dist/chat/functions/getMessages.d.ts:23
Optionalonly Unread
onlyUnread ?: boolean
Defined in node_modules/@wppconnect/wa-js/dist/chat/functions/getMessages.d.ts:22