Skip to main content
This release is a pre-release — the latest non-prerelease version of @fedify/botkit is 0.1.1. Jump to this version

@fedify/botkit@0.2.0-dev.77+d1f283de
Built and signed on GitHub Actions

A framework for creating ActivityPub bots

This package works with Deno
This package works with Deno
JSR Score
88%
Published
a month ago (0.2.0-dev.77+d1f283de)
interface AuthorizedMessage

An authorized message in the ActivityPub network. Usually it is a message published by the bot itself.

Type Parameters

T extends MessageClass

The class of the message. One of Article, ChatMessage, Note, or Question.

TContextData

The type of the context data.

Methods

update(text: Text<"block", TContextData>): Promise<void>

Updates the message with new content.

delete(): Promise<void>

Deletes the message, if possible.

If the message is already deleted, it will be a no-op.

Add Package

deno add jsr:@fedify/botkit

Import symbol

import { type AuthorizedMessage } from "@fedify/botkit/message";

---- OR ----

Import directly with a jsr specifier

import { type AuthorizedMessage } from "jsr:@fedify/botkit/message";