interface ChatMessagePayload

Data that can be used to create a ChatMessage.

Properties

conversationId: string

The ID of the conversation to send this message in.

text: RichtextBuilder | string

The message text. Can be a string or a RichText instance containing facets.

facets?: "@atcute/client/lexicons".AppBskyRichtextFacet.Main[]

A facet represents a range within the message's text that has special meaning (e.g. mentions, links, tags). Prefer to use the RichText class to create posts with facets.

embed?: StrongRef

A reference to a record to embed in the message.