feat: pin/unpin messages (#2692)

* feat: add Message.pin and Message.unpin methods

* feat: added usage example

* docs: clarifications
This commit is contained in:
alechkos 2024-01-11 10:24:02 +02:00 • committed by GitHub
commit 8d683a668b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 56 additions and 1 deletions

4
index.d.ts vendored
View file

@ -935,6 +935,10 @@ declare namespace WAWebJS {
star: () => Promise<void>,
/** Unstar this message */
unstar: () => Promise<void>,
/** Pins the message (group admins can pin messages of all group members) */
pin: (duration: number) => Promise<boolean>,
/** Unpins the message (group admins can unpin messages of all group members) */
unpin: () => Promise<boolean>,
/** Get information about message delivery status */
getInfo: () => Promise<MessageInfo | null>,
/**