@open-wa/wa-automate-types-only 4.31.13 → 4.32.2
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 +23 -1
- package/package.json +1 -1
package/dist/api/Client.d.ts
CHANGED
@@ -689,9 +689,13 @@ export declare class Client {
|
|
689
689
|
*/
|
690
690
|
getSnapshot(): Promise<DataURL>;
|
691
691
|
/**
|
692
|
-
* Returns an array of group ids where the host
|
692
|
+
* Returns an array of group ids where the host account is admin
|
693
693
|
*/
|
694
694
|
iAmAdmin(): Promise<GroupChatId[]>;
|
695
|
+
/**
|
696
|
+
* Returns an array of group ids where the host account has been kicked
|
697
|
+
*/
|
698
|
+
getKickedGroups(): Promise<GroupChatId[]>;
|
695
699
|
/**
|
696
700
|
* Syncs contacts with phone. This promise does not resolve so it will instantly return true.
|
697
701
|
*/
|
@@ -1042,6 +1046,24 @@ export declare class Client {
|
|
1042
1046
|
* @returns message object
|
1043
1047
|
*/
|
1044
1048
|
getMyLastMessage(chatId?: ChatId): Promise<Message>;
|
1049
|
+
/**
|
1050
|
+
* Retrieves the starred messages in a given chat
|
1051
|
+
* @param chatId Chat ID to filter starred messages by
|
1052
|
+
* @returns message object
|
1053
|
+
*/
|
1054
|
+
getStarredMessages(chatId?: ChatId): Promise<Message[]>;
|
1055
|
+
/**
|
1056
|
+
* Star a message
|
1057
|
+
* @param messageId Message ID of the message you want to star
|
1058
|
+
* @returns `true`
|
1059
|
+
*/
|
1060
|
+
starMessage(messageId?: ChatId): Promise<boolean>;
|
1061
|
+
/**
|
1062
|
+
* Unstar a message
|
1063
|
+
* @param messageId Message ID of the message you want to unstar
|
1064
|
+
* @returns `true`
|
1065
|
+
*/
|
1066
|
+
unstarMessage(messageId?: ChatId): Promise<boolean>;
|
1045
1067
|
/**
|
1046
1068
|
*
|
1047
1069
|
* [REQUIRES AN INSIDERS LICENSE-KEY](https://gum.co/open-wa?tier=Insiders%20Program)
|