docs/ClientInfo.html
ExtendsBase
DeprecatedUse .wid instead
Information about the phone this client is connected to. Not available in multi-device.
| 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 WhatsApp is running on
Name configured to be shown in push notifications
Current user ID
async
Get current battery percentage and charging status for the attached device
DeprecatedReturns
object
batteryStatus
number
batteryStatus.battery - The current battery percentage
boolean
batteryStatus.plugged - Indicates if the phone is plugged in (true) or not (false)