Skip to content

Commit 2120ea8

Browse files
committed
✨ feat: acceptGroupJoinRequest #3024
1 parent 4b462d0 commit 2120ea8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/api/Client.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)