feat: save contact to addressbook (#3533)
* feat: add respectfull modules * feat: add saveOrEditAddressbookContact function * feat: add deleteAddressbookContact function * refactor: import necessary type for return value * style: fix typo * docs: add ocs * style: fix typo
This commit is contained in:
parent
494a18ddb2
commit
d29eaf7def
1 changed files with 43 additions and 0 deletions
6
index.d.ts
vendored
6
index.d.ts
vendored
|
|
@ -197,6 +197,12 @@ declare namespace WAWebJS {
|
|||
|
||||
/** Sync history conversation of the Chat */
|
||||
syncHistory(chatId: string): Promise<boolean>
|
||||
|
||||
/** Save new contact to user's addressbook or edit the existing one */
|
||||
saveOrEditAddressbookContact(phoneNumber: string, firstName: string, lastName: string, syncToAddressbook?: boolean): Promise<ChatId>
|
||||
|
||||
/** Deletes the contact from user's addressbook */
|
||||
deleteAddressbookContact(honeNumber: string): Promise<void>
|
||||
|
||||
/** Changes and returns the archive state of the Chat */
|
||||
unarchiveChat(chatId: string): Promise<boolean>
|
||||
|
|
|
|||
Loading…
Reference in a new issue