Constructors
constructor
- new Wid(
id: string,
options?: { intentionallyUsePrivateConstructor: boolean },
): Wid Parameters
- id: string
Optional
options: { intentionallyUsePrivateConstructor: boolean }
Returns Wid
Properties
_serialized
_serialized: string
Optional
agent
agent?: string
Optional
device
device?: string
Methods
canBeWid
- canBeWid(wid: string): boolean
Returns boolean
equals
- equals(wid: unknown): 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: unknown): boolean
Returns boolean
isGroup
- isGroup(): boolean
Returns boolean
isGroupCall
- isGroupCall(): boolean
Returns boolean
isLessThan
- isLessThan(wid: unknown): boolean
Returns boolean
isLid
- isLid(): boolean
Returns boolean
isNewsletter
- isNewsletter(): boolean
Returns boolean
isOfficialBizAccount
- isOfficialBizAccount(): boolean
Returns boolean
isPSA
- isPSA(): boolean
Returns boolean
isSameAccount
- isSameAccount(wid: 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?: { formatFull?: boolean; legacy?: boolean }): string
Parameters
Optional
option: { formatFull?: boolean; legacy?: boolean }
Returns string
Static
equals
- equals(a: string | Wid, b: string | Wid): boolean
Parameters
- a: string | Wid
- b: string | Wid
Returns boolean
Static
isBroadcast
- isBroadcast(wid: string | Wid): boolean
Returns boolean
Static
isGreaterThan
- isGreaterThan(a: string | Wid, b: string | Wid): boolean
Parameters
- a: string | Wid
- b: string | Wid
Returns boolean
Static
isGroup
- isGroup(wid: string | Wid): boolean
Returns boolean
Static
isGroupCall
- isGroupCall(wid: string | Wid): boolean
Returns boolean
Static
isLessThan
- isLessThan(a: string | Wid, b: string | Wid): boolean
Parameters
- a: string | Wid
- b: string | Wid
Returns boolean
Static
isLid
- isLid(wid: string | Wid): boolean
Returns boolean
Static
isOfficialBizAccount
- isOfficialBizAccount(wid: string | Wid): boolean
Returns boolean
Static
isPSA
- isPSA(wid: string | Wid): boolean
Returns boolean
Static
isServer
- isServer(wid: string | Wid): boolean
Returns boolean
Static
isStatus
- isStatus(wid: string | Wid): boolean
Returns boolean
Static
isStatusV3
- isStatusV3(wid: string | Wid): boolean
Returns boolean
Static
isUser
- isUser(wid: string | Wid): boolean
Returns boolean
Static
isWid
- isWid(wid: string | Wid): boolean
Returns boolean
Static
isXWid
- isXWid(server: string, wid: string | Wid): boolean
Parameters
- server: string
- wid: string | Wid
Returns boolean
Static
user
- user(wid: string): undefined | string
Returns undefined | string
Whatsapp
89867
Whatsapp
39546 >= 2.2204.13
Whatsapp
389867 >= 2.2222.8