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

    Interface SessionInfo

    Session information

    Represents a WhatsApp session with its current state and configuration.

    const session: SessionInfo = {
    name: 'default',
    status: 'WORKING',
    config: { webhooks: [...] },
    me: { id: '1234567890@c.us', pushname: 'My Name' },
    };
    interface SessionInfo {
        config?: Record<string, unknown>;
        me?: Record<string, unknown>;
        name: string;
        status: string;
    }
    Index

    Properties

    Properties

    config?: Record<string, unknown>

    Session configuration (optional) Contains webhooks, settings, and other session-specific configuration

    me?: Record<string, unknown>

    Information about the authenticated WhatsApp account (optional) Available when session is authenticated

    name: string

    Name of the session

    status: string

    Current status of the session Common values: 'STARTING', 'SCAN_QR_CODE', 'WORKING', 'FAILED', 'STOPPED'