waha-api-client-ts
    Preparing search index...

    Interface RequestConfig

    Override configuration for individual API calls

    Allows you to override the default WAHAConfig settings for specific API requests. Useful when you need different settings for particular operations.

    // Use a different session for one request
    await client.sendText({
    chatId: '1234567890@c.us',
    text: 'Hello!',
    config: {
    session: 'other-session',
    },
    });

    // Increase timeout for a slow operation
    await client.sendFile({
    chatId: '1234567890@c.us',
    file: 'large-file.pdf',
    config: {
    timeout: 60000,
    },
    });

    // Increase retries for critical message
    await client.sendText({
    chatId: '1234567890@c.us',
    text: 'Important notification',
    config: {
    retryAttempts: 10,
    retryDelay: 2000,
    },
    });
    interface RequestConfig {
        retryAttempts?: number;
        retryDelay?: number;
        session?: string;
        timeout?: number;
    }
    Index

    Properties

    retryAttempts?: number

    Override retry attempts for this specific request Set higher for critical operations, lower for non-essential ones.

    retryDelay?: number

    Override retry delay for this specific request (in milliseconds) Time to wait between retry attempts.

    session?: string

    Override the session for this specific request Useful when working with multiple WhatsApp sessions.

    timeout?: number

    Override timeout for this specific request (in milliseconds) Use higher values for operations that may take longer (e.g., large file uploads).