bitrix24_im_message_update
Edit a Bitrix24 IM chat message by its numeric ID with new BBCode text. Only the original author can modify the message.
Instructions
Edit the text of a Bitrix24 IM chat message (including task chats). Pass the numeric message ID and the new text. Only the message author can edit. Same formatting rules as bitrix24_im_message_send: plain text + BBCode only (no Markdown), bullet lines start with a literal • (not [*]). Keep the «(написано агентом)» disclosure line as the final line of the edited text (owner rule, favor-group). ⚠️ The text you pass REPLACES the message wholesale — there is no merge. If you are editing an existing message, build the new text from that message's 'textRaw' (bitrix24_im_chat_messages), NOT from its 'text', which has BBCode stripped: round-tripping 'text' silently deletes every [URL=…] deep link, [USER=…] mention and [B]bold[/B]. Re-emit CRM references in full BBCode, e.g. [URL=https://fs-group.bitrix24.ru/crm/lead/details/NNNNN/]#NNNNN[/URL].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | New message text (BBCode supported, e.g. [USER=854]Name[/USER] for mentions) | |
| messageId | Yes | Numeric ID of the message to edit |