Edit a message
client.messages.update(stringmessageID, MessageUpdateParams { chatID, text } params, RequestOptionsoptions?): MessageUpdateResponse { chatID, messageID, success }
PUT/v1/chats/{chatID}/messages/{messageID}
Edit the text content of an existing message. Messages with attachments cannot be edited.
Parameters
messageID: string
Returns
Edit a message
import BeeperDesktop from '@beeper/desktop-api';
const client = new BeeperDesktop();
const message = await client.messages.update('messageID', {
chatID: '!NCdzlIaMjZUmvmvyHU:beeper.com',
text: 'x',
});
console.log(message.chatID);{
"chatID": "!signal_adamvy:local-signal.localhost",
"messageID": "1343993",
"success": true
}Returns Examples
{
"chatID": "!signal_adamvy:local-signal.localhost",
"messageID": "1343993",
"success": true
}