Here you will find features related to the connected client's profile, such as displaying the WhatsApp Web version, user information like name and image, among others. Additionally, you can close the client's browser or disconnect them from WhatsApp. Several similar features will be available here.
This function is used to retrieve information about the main user, such as name, image, and more.
await client.getHost();
Get information about the current version of WhatsApp Web.
const version = await client.getWAVersion();
This function closes the client's browser, shutting down the WhatsApp page.
await client.browserClose();
This function is used to disconnect the client from WhatsApp.
await client.logoutSession();
This function captures an image of the browser screen, allowing you to check the navigation behavior through a screenshot.
// Return base64 image
await client.screenshot();
Generated using TypeDoc