Delete a message
client.messages.delete(stringmessageID, MessageDeleteParams { chatID, forEveryone } params, RequestOptionsoptions?): void
DELETE/v1/chats/{chatID}/messages/{messageID}
Delete a message by final message ID. Pending message IDs are not accepted because messages cannot be deleted while sending.
Delete a message
import BeeperDesktop from '@beeper/desktop-api';
const client = new BeeperDesktop({
accessToken: process.env['BEEPER_ACCESS_TOKEN'], // This is the default and can be omitted
});
await client.messages.delete('1343993', { chatID: '!NCdzlIaMjZUmvmvyHU:beeper.com' });