Archive or unarchive a chat
archive_chatArchive or unarchive a WhatsApp chat on linked devices using a wuapi account. Set archived to false to restore it.
Instructions
Archive a chat on the linked devices, or unarchive it with archived: false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | Yes | The chat: a contact as E.164 with + (`+584241112233`) or `lid:<digits>`, or a group id (`...@g.us`). | |
| archived | No | Default true. | |
| accountId | Yes | The wuapi account id of the linked number to act as (from list_accounts). |