Back to Whatsapp Web Js

whatsapp

docs/ClientInfo.html

1.34.71.4 KB
Original Source

Properties

mephone

platformpushname

wid

Method

getBatteryStatus()

new ClientInfo()

ExtendsBase

Properties

me object

DeprecatedUse .wid instead

phone object

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

Properties

NameTypeOptionalDescription

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

async

getBatteryStatus() → (object, number, or boolean)

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)