ClientInfo
Source: structures/
Current connection information
Method
new ClientInfo()
- Extends
- Base
Properties
me object
- Deprecated
- Use .wid instead
phone object
Information about the phone this client is connected to. Not available in multi-device.
Properties
Name | Type | Optional | 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
platform string
Platform whatsapp網頁版 is running on
pushname string
Name configured to be shown in push notifications
wid object
Current user ID
Method
getBatteryStatus() → (object, number, or boolean)
Get current battery percentage and charging status for the attached device
- Deprecated
- Returns
-
object
batteryStatus
-
number
batteryStatus.battery - The current battery percentage
-
boolean
batteryStatus.plugged - Indicates if the phone is plugged in (true) or not (false)