whatsapp-api-js - v5.2.0

    Type Alias OnStatusArgs

    type OnStatusArgs = {
        biz_opaque_callback_data?: string;
        conversation?: ServerConversation;
        error?: ServerError;
        id: string;
        offload: typeof offload;
        phone: string;
        phoneID: string;
        pricing?: ServerPricing;
        raw: PostData;
        status: string;
        timestamp: string;
        Whatsapp: InstanceType<typeof WhatsAppAPI>;
    }
    Index

    Properties

    biz_opaque_callback_data?: string

    Arbitrary string included in sent messages

    conversation?: ServerConversation

    The conversation object

    error?: ServerError

    The error object

    id: string

    The message ID

    offload: typeof offload

    Utility function for offloading code from the main thread, useful for long running tasks such as AI generation

    phone: string

    The user's phone number

    phoneID: string

    The bot's phoneID

    pricing?: ServerPricing

    The pricing object

    The raw data from the API

    status: string

    The message status

    timestamp: string

    The message timestamp

    Whatsapp: InstanceType<typeof WhatsAppAPI>

    The WhatsAppAPI instance that emitted the event

    MMNEPVFCICPMFPCPTTAAATR