This commit is contained in:
Pedro S. Lopez
2021-02-09 00:42:29 -04:00
parent fa4923db98
commit 89029ac916

View File

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