mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
@@ -513,7 +513,6 @@ WA uses an encrypted form of communication to send chat/app updates. This has be
|
|||||||
|
|
||||||
- Delete message for me
|
- Delete message for me
|
||||||
``` ts
|
``` ts
|
||||||
// mark it unread
|
|
||||||
await sock.chatModify(
|
await sock.chatModify(
|
||||||
{ clear: { message: { id: 'ATWYHDNNWU81732J', fromMe: true } } },
|
{ clear: { message: { id: 'ATWYHDNNWU81732J', fromMe: true } } },
|
||||||
'123456@s.whatsapp.net',
|
'123456@s.whatsapp.net',
|
||||||
@@ -633,10 +632,10 @@ Of course, replace ``` xyz ``` with an actual ID.
|
|||||||
const metadata = await sock.groupMetadata("abcd-xyz@g.us")
|
const metadata = await sock.groupMetadata("abcd-xyz@g.us")
|
||||||
console.log(metadata.id + ", title: " + metadata.subject + ", description: " + metadata.desc)
|
console.log(metadata.id + ", title: " + metadata.subject + ", description: " + metadata.desc)
|
||||||
```
|
```
|
||||||
- To join the group using the invitation code (not supported yet)
|
- To join the group using the invitation code
|
||||||
``` ts
|
``` ts
|
||||||
const response = await sock.acceptInvite("xxx")
|
const response = await sock.groupAcceptInvite("xxx")
|
||||||
console.log("joined to: " + response.gid)
|
console.log("joined to: " + response)
|
||||||
```
|
```
|
||||||
Of course, replace ``` xxx ``` with invitation code.
|
Of course, replace ``` xxx ``` with invitation code.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user