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 setPrivacyForOneCategory
setPrivacyForOneCategory ( attrs : { dhash ?: any ; name : "status" | "last" | "profile" ; users ?: { action : "add" | "remove" ; wid : WAJS . whatsapp . Wid } [] ; value : "none" | "contacts" | "all" | "contact_blacklist" ; } , disallowedList ?: WAJS . whatsapp . Wid [] , ) : Promise < void >
Parameters
attrs : { dhash ?: any ; name : "status" | "last" | "profile" ; users ?: { action : "add" | "remove" ; wid : WAJS . whatsapp . Wid } [] ; value : "none" | "contacts" | "all" | "contact_blacklist" ; }
OptionaldisallowedList : WAJS . whatsapp . Wid []
Returns Promise < void >
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/functions/setPrivacyForOneCategory.d.ts:20
setPrivacyForOneCategory ( attrs : { dhash ?: any ; name : "groupadd" ; users ?: { action : "add" | "remove" ; wid : WAJS . whatsapp . Wid } [] ; value : "contacts" | "all" | "contact_blacklist" ; } , disallowedList ?: WAJS . whatsapp . Wid [] , ) : Promise < void >
Parameters
attrs : { dhash ?: any ; name : "groupadd" ; users ?: { action : "add" | "remove" ; wid : WAJS . whatsapp . Wid } [] ; value : "contacts" | "all" | "contact_blacklist" ; }
OptionaldisallowedList : WAJS . whatsapp . Wid []
Returns Promise < void >
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/functions/setPrivacyForOneCategory.d.ts:30
setPrivacyForOneCategory ( attrs : { name : "online" ; value : "all" | "match_last_seen" } , ) : Promise < void >
Parameters
attrs : { name : "online" ; value : "all" | "match_last_seen" }
Returns Promise < void >
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/functions/setPrivacyForOneCategory.d.ts:40
setPrivacyForOneCategory ( attrs : { name : "readreceipts" ; value : "none" | "all" } , ) : Promise < void >
Parameters
attrs : { name : "readreceipts" ; value : "none" | "all" }
Returns Promise < void >
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/functions/setPrivacyForOneCategory.d.ts:45
For set privacy who can you see your last seen, profile pic, or status