Class: ClientInfo

ClientInfo()

Current connection information

Constructor

new ClientInfo()

Source:

Extends

Members

me :object

Type:
  • object
Deprecated:
  • Use .wid instead
Source:

phone :object

Information about the phone this client is connected to. Not available in multi-device.

Type:
  • object
Properties:
Name Type Description
wa_version string

WhatsApp Version running on the phone

os_version string

OS Version running on the phone (iOS or Android version)

device_manufacturer string

Device manufacturer

device_model string

Device model

os_build_number string

OS build number

Deprecated:
  • Yes
Source:

platform :string

Platform WhatsApp is running on

Type:
  • string
Source:

pushname :string

Name configured to be shown in push notifications

Type:
  • string
Source:

wid :object

Current user ID

Type:
  • object
Source:

Methods

(async) getBatteryStatus() → {object|number|boolean}

Get current battery percentage and charging status for the attached device

Deprecated:
  • Yes
Source:
Returns:
  • batteryStatus

    Type
    object
  • batteryStatus.battery - The current battery percentage

    Type
    number
  • batteryStatus.plugged - Indicates if the phone is plugged in (true) or not (false)

    Type
    boolean