POST
slack_chat_update.py
import asyncio
from charter.packs import slack
result = asyncio.run(slack.chat_update.ainvoke({"channel": ..., "ts": ...}))
Requires
chat:write. With slack.USER, requires chat:write.Body
| Field | Type | Description |
|---|---|---|
channel * | string | Channel containing the message to be updated. For direct messages use the DM ID (starting with ‘D’). |
ts * | string | Timestamp of the message to be updated. |
text | string | The new body text of the message, limited to 4,000 characters. Required unless blocks or attachments are provided. |
blocks | object[] | A JSON-based array of structured Block Kit blocks. |
attachments | object[] | A JSON-based array of structured attachments. |
fileIds | string[] | Array of new file IDs to attach to the message. |
replyBroadcast | boolean | Broadcast an existing thread reply to the channel. Defaults to false. |
metadata | MessageMetadata | Application-specific metadata to attach to the message. |