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 .
Function getSearchContext
getSearchContext ( chat : string | ChatModel , msg : string | MsgKey | MsgModel , options ?: { isQuotedMsgAvailable : boolean } , ) : { collection : MsgLoad ; highlightMsg : true ; key ?: MsgKey ; msg ?: MsgModel }
Returns { collection : MsgLoad ; highlightMsg : true ; key ?: MsgKey ; msg ?: MsgModel }
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/functions/getSearchContext.d.ts:21
getSearchContext ( params : { chat : string | ChatModel ; msgKey : string | MsgKey | MsgModel ; rootMsg ?: MsgModel ; threadId ?: string ; } , ) : { collection : MsgLoad ; highlightMsg : true ; key ?: MsgKey ; msg ?: MsgModel }
Returns { collection : MsgLoad ; highlightMsg : true ; key ?: MsgKey ; msg ?: MsgModel }
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/functions/getSearchContext.d.ts:29
Whatsapp
738599 >= 2.2242.5