File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ public void onWebVideoMessage(WebVideoMessage videoMessage) {
100100 // ...
101101}
102102```
103- ### Send text messages
103+ ### Send text message
104104``` java
105105String 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
115125Queries the chat history of a conversation
116126``` java
You can’t perform that action at this time.
0 commit comments