Constructors
constructor
- new Wid(id, options?): Wid
Parameters
- id: string
Optional
options: {
intentionallyUsePrivateConstructor: boolean;
}intentionallyUsePrivateConstructor: boolean
Returns Wid
Properties
_serialized
_serialized: string
Optional
agent
agent?: string
Optional
device
device?: string
Methods
canBeWid
- canBeWid(wid): boolean
Returns boolean
equals
- equals(wid): boolean
Returns boolean
getDeviceId
- getDeviceId(): number
Returns number
getSignalAddress
- getSignalAddress(): string
Returns string
isBot
- isBot(): boolean
Returns boolean
isBroadcast
- isBroadcast(): boolean
Returns boolean
isCompanion
- isCompanion(): boolean
Returns boolean
isGreaterThan
- isGreaterThan(wid): boolean
Returns boolean
isGroup
- isGroup(): boolean
Returns boolean
isGroupCall
- isGroupCall(): boolean
Returns boolean
isLessThan
- isLessThan(wid): boolean
Returns boolean
isLid
- isLid(): boolean
Returns boolean
isOfficialBizAccount
- isOfficialBizAccount(): boolean
Returns boolean
isPSA
- isPSA(): boolean
Returns boolean
isSameAccount
- isSameAccount(wid): boolean
Returns boolean
isServer
- isServer(): boolean
Returns boolean
isStatus
- isStatus(): boolean
Returns boolean
isStatusV3
- isStatusV3(): boolean
Returns boolean
isUser
- isUser(): boolean
Returns boolean
isUserNotPSA
- isUserNotPSA(): boolean
Returns boolean
toJid
- toJid(): string
Returns string
toJSON
- toJSON(): string
Returns string
toString
- toString(option?): string
Parameters
Optional
option: {
formatFull?: boolean;
legacy?: boolean;
}Optional
formatFull?: boolean
Optional
legacy?: boolean
Returns string
Static
equals
- equals(a, b): boolean
Parameters
- a: string | Wid
- b: string | Wid
Returns boolean
Static
isBroadcast
- isBroadcast(wid): boolean
Returns boolean
Static
isGreaterThan
- isGreaterThan(a, b): boolean
Parameters
- a: string | Wid
- b: string | Wid
Returns boolean
Static
isGroup
- isGroup(wid): boolean
Returns boolean
Static
isGroupCall
- isGroupCall(wid): boolean
Returns boolean
Static
isLessThan
- isLessThan(a, b): boolean
Parameters
- a: string | Wid
- b: string | Wid
Returns boolean
Static
isLid
- isLid(wid): boolean
Returns boolean
Static
isOfficialBizAccount
- isOfficialBizAccount(wid): boolean
Returns boolean
Static
isPSA
- isPSA(wid): boolean
Returns boolean
Static
isServer
- isServer(wid): boolean
Returns boolean
Static
isStatus
- isStatus(wid): boolean
Returns boolean
Static
isStatusV3
- isStatusV3(wid): boolean
Returns boolean
Static
isUser
- isUser(wid): boolean
Returns boolean
Static
isWid
- isWid(wid): boolean
Returns boolean
Static
isXWid
- isXWid(server, wid): boolean
Parameters
- server: string
- wid: string | Wid
Returns boolean
Static
user
- user(wid): undefined | string
Returns undefined | string
Whatsapp
89867
Whatsapp
39546 >= 2.2204.13
Whatsapp
389867 >= 2.2222.8