
@botkit@hollo.social

ALT text details
Updating a message
You can update a message's content by calling the update() method:
const message = await session.publish(
text`This message will be updated in a minute.`
);
setTimeout(async () => {
await message.update(text`This message has been updated.`);
}, 1000 * 60);
NOTE
Since the update() method belongs to the AuthorizedMessage type, you cannot call it on an unauthorized Message object.
CAUTION
Some ActivityPub implementations like older versions of Mastodon and Misskey do not support updating messages. For those implementations, once published messages are shown as-is forever even if you update them.