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

    Interface SerializedMessage

    interface SerializedMessage {
        body: string;
        chat?: string;
        expiration?: number;
        fromMe: boolean;
        id?: string;
        isGroup: boolean;
        isMedia: boolean;
        isViewOnce: boolean;
        key: Record<string, unknown>;
        mentions: string[];
        message?: Record<string, unknown>;
        pushName?: string;
        quoted: SerializedQuoted | null;
        quotedText: string;
        raw: Record<string, unknown>;
        sender?: string;
        timestamp?: number;
        timestampMs: number | null;
        type?: string;
        viewOnce:
            | {
                media: Record<string, unknown>;
                mediaType?: string;
                message: Record<string, unknown>;
                type: string;
            }
            | null;
        delete(): Promise<unknown>;
        download(
            downloadType?: "buffer" | "stream",
            options?: Record<string, unknown>,
        ): Promise<unknown>;
        forward(jid: string, options?: Record<string, unknown>): Promise<unknown>;
        react(emoji: string): Promise<unknown>;
        reply(
            content: string | Record<string, unknown>,
            options?: Record<string, unknown>,
        ): Promise<unknown>;
        send(
            content: string | Record<string, unknown>,
            options?: Record<string, unknown>,
        ): Promise<unknown>;
    }
    Index
    body: string

    Best-effort text: body, caption, poll name, ...

    chat?: string
    expiration?: number

    Disappearing-message timer (seconds), if any.

    fromMe: boolean
    id?: string
    isGroup: boolean
    isMedia: boolean
    isViewOnce: boolean
    key: Record<string, unknown>
    mentions: string[]
    message?: Record<string, unknown>

    Normalized (unwrapped) message content.

    pushName?: string
    quoted: SerializedQuoted | null
    quotedText: string

    Text of the replied-to message, or ''.

    raw: Record<string, unknown>

    The original WAMessage.

    sender?: string
    timestamp?: number
    timestampMs: number | null

    Epoch-ms timestamp (Long + second units handled), or null.

    type?: string

    Inner content type, e.g. 'conversation' or 'imageMessage'.

    viewOnce:
        | {
            media: Record<string, unknown>;
            mediaType?: string;
            message: Record<string, unknown>;
            type: string;
        }
        | null

    Unwrapped view-once info or null.

    • Parameters

      • OptionaldownloadType: "buffer" | "stream"
      • Optionaloptions: Record<string, unknown>

      Returns Promise<unknown>

    • Parameters

      • jid: string
      • Optionaloptions: Record<string, unknown>

      Returns Promise<unknown>

    • Parameters

      • content: string | Record<string, unknown>
      • Optionaloptions: Record<string, unknown>

      Returns Promise<unknown>

    • Parameters

      • content: string | Record<string, unknown>
      • Optionaloptions: Record<string, unknown>

      Returns Promise<unknown>