diff --git a/src/Client.js b/src/Client.js index 1885b24..ced7ea1 100644 --- a/src/Client.js +++ b/src/Client.js @@ -556,6 +556,7 @@ class Client extends EventEmitter { /** * Accepts an invitation to join a group * @param {string} inviteCode Invitation code + * @returns {Promise} Id of the joined Chat */ async acceptInvite(inviteCode) { const chatId = await this.pupPage.evaluate(async inviteCode => {