interface ChatMessagePayload

Data that can be used to create a ChatMessage.


conversationId: string

The ID of the conversation to send this message in.

text: RichText | string

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

facets?: 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.