Properties
{ text: string; type: "text" } | { markdown: string; type: "markdown" } | { for…
required
"inbound" | "outbound"
required
string
required
TPlatform
required
TSender | undefined
required
TSpace
required
Date
required
Methods
edit()
Parameters
ContentInput
required
Returns
Promise<void>
react()
Message (content
narrowed to Reaction) — keep it as the handle to unsend() later.
Resolves undefined when the platform does not support reactions
(warned and skipped).
The return type is an inline intersection rather than a TContent
generic on Message: a content type parameter would need Content as
its default, and Content’s schemas (reaction, reply, edit,
group) reference Message — TS rejects the resulting circular
default (TS2716).
Parameters
string
required
Returns
MessageMessage
read()
space.send(read(this)). Reads are fire-and-forget;
per-platform granularity and support (e.g. iMessage marks the whole
chat; Telegram/Slack silently no-op) surface from the provider’s send
action. Only inbound messages can be marked read; calling this on an
outbound message throws.
Returns
Promise<void>
reply()
Parameters
ContentInput
required
Returns
Message
Parameters
[ContentInput, ContentInput, unknown]
required
Returns
Message
unsend()
space.send(unsend(this)). Unsends are
fire-and-forget; per-platform support and constraints (e.g. iMessage’s
~2-minute unsend window for regular messages) surface from the
provider’s send action. Only outbound messages can be unsent; calling
this on an inbound message throws.
Returns
Promise<void>