class
PrivateChat
Source: structures/
Represents a Private Chat on WhatsApp
Properties
new PrivateChat()
- Extends
- Chat
Properties
id unknown
ID that represents the chat
- Inherited from
- Chat#id
isGroup unknown
Indicates if the Chat is a Group Chat
- Inherited from
- Chat#isGroup
isReadOnly unknown
Indicates if the Chat is readonly
- Inherited from
- Chat#isReadOnly
name unknown
Title of the chat
- Inherited from
- Chat#name
timestamp unknown
Unix timestamp for when the chat was created
- Inherited from
- Chat#timestamp
unreadCount unknown
Amount of messages unread
- Inherited from
- Chat#unreadCount
Method
async
sendMessage(content, options) → Promise containing Message
Send a message to this chat
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
|
content |
|
|
|
|
options |
|
|
- Inherited from
- Chat#sendMessage
- Returns
-
Message that was just sent