@open-wa/wa-automate-types-only 4.75.0 → 4.76.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/Client.d.ts +18 -0
- package/package.json +1 -1
package/dist/api/Client.d.ts
CHANGED
@@ -1540,6 +1540,24 @@ export declare class Client {
|
|
1540
1540
|
* @returns
|
1541
1541
|
*/
|
1542
1542
|
inviteInfo(link: string): Promise<any>;
|
1543
|
+
/**
|
1544
|
+
* Set/Unset a sticker as a fav.
|
1545
|
+
* @param msgId The message Id related to the sticker you want to fav
|
1546
|
+
* @param fav set this to true to fav a sticker, set it to false to remove the sticker from favorites. default true
|
1547
|
+
* @returns favId The ID (filehash) of the fav sticker
|
1548
|
+
*/
|
1549
|
+
favSticker(msgId: MessageId, fav?: boolean): Promise<string>;
|
1550
|
+
/**
|
1551
|
+
* Set/Unset a sticker as a fav.
|
1552
|
+
* @param chatId The chat in which you want to send the sticker
|
1553
|
+
* @param favId set this to true to favourite a sticker, set it to false to remove the sticker from favorites
|
1554
|
+
* @returns MessageId of the sent sticker message
|
1555
|
+
*/
|
1556
|
+
sendFavSticker(chatId: ChatId, favId: string): Promise<MessageId>;
|
1557
|
+
/**
|
1558
|
+
* Get an array of fav'ed stickers
|
1559
|
+
*/
|
1560
|
+
getFavStickers(): Promise<Partial<Message>>;
|
1543
1561
|
/**
|
1544
1562
|
* Revokes the current invite link for a group chat. Any previous links will stop working
|
1545
1563
|
* @param chatId
|