## Update `client.messages.update(stringmessageID, MessageUpdateParamsparams, RequestOptionsoptions?): MessageUpdateResponse` **put** `/v1/chats/{chatID}/messages/{messageID}` Edit the text content of an existing message. Messages with attachments cannot be edited. ### Parameters - `messageID: string` - `params: MessageUpdateParams` - `chatID: string` Path param: Unique identifier of the chat. - `text: string` Body param: New text content for the message ### Returns - `MessageUpdateResponse` - `chatID: string` Unique identifier of the chat. - `messageID: string` Message ID. - `success: boolean` Whether the message was successfully edited ### Example ```typescript 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); ```