File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,7 @@ declare module WAPI {
145
145
const contactBlock : ( id : string ) => Promise < boolean > ;
146
146
const checkReadReceipts : ( contactId : string ) => Promise < boolean | string > ;
147
147
const REPORTSPAM : ( id : string ) => Promise < boolean > ;
148
+ const acceptGroupJoinRequest : ( id : string ) => Promise < boolean > ;
148
149
const contactUnblock : ( id : string ) => Promise < boolean > ;
149
150
const deleteConversation : ( chatId : string ) => Promise < boolean > ;
150
151
const isChatMuted : ( chatId : string ) => Promise < boolean > ;
@@ -2563,6 +2564,16 @@ public async testCallback(callbackToTest: SimpleListener, testData: any) : Prom
2563
2564
) as Promise < any > ;
2564
2565
}
2565
2566
2567
+
2568
+ /**
2569
+ *
2570
+ * Accepts a request from a recipient to join a group. Takes the message ID of the request message.
2571
+ *
2572
+ * @param {string } messageId
2573
+ */
2574
+ public async acceptGroupJoinRequest ( messageId : MessageId ) : Promise < boolean > {
2575
+ return await this . pup ( messageId => WAPI . acceptGroupJoinRequest ( messageId ) , messageId )
2576
+ }
2566
2577
2567
2578
/** Joins a group via the invite link, code, or message
2568
2579
* @param link This param is the string which includes the invite link or code. The following work:
You can’t perform that action at this time.
0 commit comments