Skip to content
Download Beeper

Edit a message

$client->messages->update(string messageID, string chatID, string text): MessageUpdateResponse
PUT/v1/chats/{chatID}/messages/{messageID}

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

ParametersExpand Collapse
chatID: string

Unique identifier of the chat.

messageID: string
text: string

New text content for the message

ReturnsExpand Collapse
string chatID

Unique identifier of the chat.

string messageID

Message ID.

bool success

Whether the message was successfully edited

Edit a message

<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

$client = new Client();

$message = $client->messages->update(
  'messageID', chatID: '!NCdzlIaMjZUmvmvyHU:beeper.com', text: 'x'
);

var_dump($message);
{
  "chatID": "!signal_adamvy:local-signal.localhost",
  "messageID": "1343993",
  "success": true
}
Returns Examples
{
  "chatID": "!signal_adamvy:local-signal.localhost",
  "messageID": "1343993",
  "success": true
}