@botmesh/core - v2.0.0-alpha.2
    Preparing search index...

    Interface SendHookContext

    Payload of the 'send' hooks: every outbound send (ctx.reply, bot.send, broadcasts), plus edits (edit) and streamed output (stream). A before hook may rewrite content and options in place, or abort() to skip the send (it then resolves skipped).

    interface SendHookContext {
        chatId: string;
        content: OutboundContent;
        options?: SendOptions;
        stream?: "message" | "edit" | "draft";
        edit?: MessageRef;
    }
    Index
    chatId: string
    options?: SendOptions
    stream?: "message" | "edit" | "draft"

    Set on streamed output: a new message, a live edit or a native draft preview.

    edit?: MessageRef

    Set when the send edits an existing message in place (ctx.edit()).