Rocket.Chat Extended icon

Rocket.Chat Extended

Extended Rocket.Chat operations: channels, messages, threads, reactions, file upload, and more

Message → Edit

AI-generated

Summary

Edits an existing message in a Rocket.Chat channel by updating its text.

Inputs

  • specifyRoomManually — Whether to select the channel from a list (false) or provide the channel ID manually (true).
  • roomId (required) — The channel ID to edit the message in; selected from the list or entered manually based on specifyRoomManually.
  • messageId (required) — The ID of the message to edit.
  • newText (required) — The new text content for the message.

Output shape

a single updated message object

Returns the full message payload as returned by Rocket.Chat's editMessage API; contains all message fields.

Examples

Example 1: Update the text of a known message

roomId set to channel ID, messageId set to message ID, newText set to new content, specifyRoomManually false

Example 2: Edit a message using manual channel ID

specifyRoomManually true, roomId set to channel ID, messageId set to message ID, newText set to new content

Links

Discussion