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

    Interface VoiceNoteBuildOptions

    JAP@Add --- Type declarations for the voice-note sender.

    interface VoiceNoteBuildOptions {
        allowPrivate?: boolean;
        convert?: boolean;
        dispatcher?: any;
        fetchImpl?: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | URL | Request, init?: RequestInit): Promise<Response>;
        };
        fetchTimeoutMs?: number;
        headers?: any;
        maxContentLength?: number;
        seconds?: number;
        timeoutMs?: number;
        waveform?: number[]
        | Buffer<ArrayBufferLike>;
        [key: string]: any;
    }

    Indexable

    • [key: string]: any
    Index
    allowPrivate?: boolean

    Allow localhost/private-IP URLs. Off by default to reduce SSRF risk.

    convert?: boolean
    dispatcher?: any
    fetchImpl?: {
        (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
        (input: string | URL | Request, init?: RequestInit): Promise<Response>;
    }

    Type Declaration

      • (input: URL | RequestInfo, init?: RequestInit): Promise<Response>
      • Parameters

        • input: URL | RequestInfo
        • Optionalinit: RequestInit

        Returns Promise<Response>

      • (input: string | URL | Request, init?: RequestInit): Promise<Response>
      • Parameters

        • input: string | URL | Request
        • Optionalinit: RequestInit

        Returns Promise<Response>

    fetchTimeoutMs?: number

    Remote URL fetch timeout (default 60s).

    headers?: any
    maxContentLength?: number

    Max bytes accepted when audio is an HTTP(S) URL (default 50 MiB).

    seconds?: number
    timeoutMs?: number
    waveform?: number[] | Buffer<ArrayBufferLike>