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 {
145145  const  contactBlock : ( id : string )  =>  Promise < boolean > ; 
146146  const  checkReadReceipts : ( contactId : string )  =>  Promise < boolean  |  string > ; 
147147  const  REPORTSPAM : ( id : string )  =>  Promise < boolean > ; 
148+   const  acceptGroupJoinRequest : ( id : string )  =>  Promise < boolean > ; 
148149  const  contactUnblock : ( id : string )  =>  Promise < boolean > ; 
149150  const  deleteConversation : ( chatId : string )  =>  Promise < boolean > ; 
150151  const  isChatMuted : ( chatId : string )  =>  Promise < boolean > ; 
@@ -2563,6 +2564,16 @@ public async testCallback(callbackToTest: SimpleListener, testData: any)  : Prom
25632564    )  as  Promise < any > ; 
25642565  } 
25652566
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+   } 
25662577
25672578/** Joins a group via the invite link, code, or message 
25682579 * @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