Skip to content
Download Beeper

Edit a message

messages.update(strmessage_id, MessageUpdateParams**kwargs) -> MessageUpdateResponse
PUT/v1/chats/{chatID}/messages/{messageID}

Edit the text content of an existing message. Messages with attachments cannot be edited.

ParametersExpand Collapse
chat_id: str

Unique identifier of the chat.

message_id: str
text: str

New text content for the message

minLength1
ReturnsExpand Collapse
class MessageUpdateResponse:
chat_id: str

Unique identifier of the chat.

message_id: str

Message ID.

success: bool

Whether the message was successfully edited

Edit a message

from beeper_desktop_api import BeeperDesktop

client = BeeperDesktop()
message = client.messages.update(
    message_id="messageID",
    chat_id="!NCdzlIaMjZUmvmvyHU:beeper.com",
    text="x",
)
print(message.chat_id)
{
  "chatID": "!signal_adamvy:local-signal.localhost",
  "messageID": "1343993",
  "success": true
}
Returns Examples
{
  "chatID": "!signal_adamvy:local-signal.localhost",
  "messageID": "1343993",
  "success": true
}