Skip to content

Commit 174d2a2

Browse files
authored
Add clearMessage to the documentation
1 parent d064d52 commit 174d2a2

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public void onWebVideoMessage(WebVideoMessage videoMessage) {
100100
// ...
101101
}
102102
```
103-
### Send text messages
103+
### Send text message
104104
```java
105105
String remoteJid = "0123456789@s.whatsapp.net";
106106

@@ -111,6 +111,16 @@ client.sendMessage(remoteJid, "Hello World");
111111
- Chats: `[country code][phone number]@s.whatsapp.net`, for example `490123456789@s.whatsapp.net`
112112
- Groups: `[phone number of group creator]-[timestamp of group creation]@g.us`, e.g. `490123456789-1596766695@g.us`
113113

114+
### Delete sent message
115+
Lets you delete a sent message for yourself
116+
```java
117+
String remoteJid = "0123456789@s.whatsapp.net";
118+
String messageId = "3EM04B5BA7A366D3F9AE";
119+
boolean owner = true;
120+
121+
client.clearMessage(remoteJid, messageId, owner);
122+
```
123+
114124
### Load conversation
115125
Queries the chat history of a conversation
116126
```java

0 commit comments

Comments
 (0)