Archive
Archive or unarchive a chat
client.chats.archive(stringchatID, ChatArchiveParams { archived } body?, RequestOptionsoptions?): void
/v1/chats/{chatID}/archive
Archive or unarchive a chat. Set archived=true to move to archive, archived=false to move back to inbox
Parameters
chatID: string
Unique identifier of the chat.
Archive or unarchive a chat
import BeeperDesktop from '@beeper/desktop-api';
const client = new BeeperDesktop({
accessToken: 'My Access Token',
});
await client.chats.archive('!NCdzlIaMjZUmvmvyHU:beeper.com');