Skip to main content
ctx.reply() returns a ReplyHandle so that you can edit the message you just sent on the provider. This is useful when you post “Processing…” and replace it with the final text. That is not a reply type; it updates a message you already sent.

Channel support

See Channels overview for the full matrix.

Basic edit

The following example sends a placeholder message, does work, then updates the same message in place:

Edit with attachments

You can attach files when editing plain text or markdown content. Outbound files are delivered on Slack and Microsoft Teams; other channels do not support them yet. See Sending attachments.
Edits update the existing platform message rather than posting a new one. Not every provider supports message editing. See Channels overview and the Channel support strip above.

Reply

Send plain text, markdown, attachments, and interactive cards.

Handlers and context

Event handlers and the context object your agent receives on every turn.