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

    Interface AutoRead

    interface AutoRead {
        count: number;
        isPaused: boolean;
        bind(sock: unknown): () => void;
        handler(
            upsert: { messages: unknown[]; type?: string },
            sock?: unknown,
        ): Promise<void>;
        onError(
            cb: (info: { error: unknown; keys: unknown[] }) => void,
        ): () => void;
        onRead(cb: (keys: Record<string, unknown>[]) => void): () => void;
        pause(): void;
        resume(): void;
        unbind(): void;
    }
    Index
    count: number

    Total messages auto-read since creation.

    isPaused: boolean
    • Parameters

      • upsert: { messages: unknown[]; type?: string }
      • Optionalsock: unknown

      Returns Promise<void>

    • Parameters

      • cb: (info: { error: unknown; keys: unknown[] }) => void

      Returns () => void

    • Parameters

      • cb: (keys: Record<string, unknown>[]) => void

      Returns () => void