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 .
Type Alias SendToChatProps
type SendToChatProps = { chat : ChatModel ; earlyUpload ?: Promise < any > ; options ?: { addEvenWhilePreparing ?: boolean ; caption ?: string ; ctwaContext ?: any ; footer ?: string ; forwardedFromWeb ?: boolean ; forwardingScore ?: any ; isForwarded ?: boolean ; isViewOnce ?: boolean ; mentionedJidList ?: any ; multicast ?: any ; productMsgOptions ?: ModelPropertiesContructor < MsgModel > ; quotedMsg ?: MsgModel ; type ?: null | string ; } ; }
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/misc/MediaPrep.d.ts:19
Properties
chat
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/misc/MediaPrep.d.ts:20
Optionalearly Upload
earlyUpload ?: Promise < any >
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/misc/MediaPrep.d.ts:21
Optionaloptions
options ?: { addEvenWhilePreparing ?: boolean ; caption ?: string ; ctwaContext ?: any ; footer ?: string ; forwardedFromWeb ?: boolean ; forwardingScore ?: any ; isForwarded ?: boolean ; isViewOnce ?: boolean ; mentionedJidList ?: any ; multicast ?: any ; productMsgOptions ?: ModelPropertiesContructor < MsgModel > ; quotedMsg ?: MsgModel ; type ?: null | string ; }
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/misc/MediaPrep.d.ts:22