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.
Parameters
chatID: string
Unique identifier of the chat.
messageID: string
text: string
New text content for the message
Returns
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
}