A message in the ActivityPub network. It is a thin wrapper around
a Fedify object: an Article
, a ChatMessage
, a Note
, or a Question
.
T extends MessageClass
The class of the message. One of Article
, ChatMessage
,
Note
, or Question
.
readonly
visibility: MessageVisibility
The visibility of the message.
readonly
optional
language: LanguageTag
The language of the message if the content is tagged with a language.
readonly
optional
replyTarget: Message<MessageClass, TContextData>
The original message in reply to, if the message is a reply.
readonly
attachments: readonly Document[]
The media attachments of the message.
readonly
optional
published: Temporal.Instant
The published time of the message.
readonly
optional
updated: Temporal.Instant
The updated time of the message, if it is updated.
reply(text: Text<"block", TContextData>,options?: SessionPublishOptions,): Promise<AuthorizedMessage<Note, TContextData>>
Publishes a reply to the message.
reply<T extends MessageClass>(text: Text<"block", TContextData>,options?: SessionPublishOptionsWithClass<T>,): Promise<AuthorizedMessage<T, TContextData>>
Publishes a reply to the message.
Likes the message.