@japofc/baileys - v2.4.7
    Preparing search index...

    Class Context

    Wraps a WAMessage with reply/react/session/media helpers for command handlers.

    Index
    args?: string[]

    Positional arguments after the command (set during dispatch).

    argString?: string

    Raw argument string after the command (set during dispatch).

    bot: Bot
    command?: string

    Command word matched by CommandRouter (set during dispatch).

    flags?: Record<string, string | boolean | (string | boolean)[]>

    Parsed flags/options (set during dispatch).

    isFromMe: boolean

    Whether the bot itself sent this message.

    isGroup: boolean

    True when the message came from a group chat.

    matchedCommand?: CommandDefinition

    The matched command definition (set during dispatch).

    mentionedJids: string[]

    JIDs @-mentioned in the message (empty when none).

    message: any
    prefix?: string

    Prefix that triggered the command (set during dispatch).

    pushName: string | undefined

    Sender's WhatsApp display name, when provided.

    quoted: unknown

    The quoted message content (contextInfo.quotedMessage), if any.

    remoteJid: string | undefined
    sender: string | undefined

    Individual sender (group participant, else the chat JID).

    text: string | undefined

    Text content, including image/video/document captions.

    • Reply quoting the original message. Throws when remoteJid is missing.

      Parameters

      Returns Promise<void>

    • Parameters

      • inputPathOrBuffer: string | Buffer<ArrayBufferLike>
      • Optionalmetadata: { author?: string; packname?: string }

      Returns Promise<void>

    • Parameters

      • inputPathOrBuffer: string | Buffer<ArrayBufferLike>

      Returns Promise<void>

    • Parameters

      • updater: (prev: Record<string, unknown>) => Record<string, unknown>

      Returns void