OnStatusArgs: {
    Whatsapp: InstanceType<typeof WhatsAppAPI>;
    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;
}

Type declaration

  • Whatsapp: InstanceType<typeof WhatsAppAPI>

    The WhatsAppAPI instance that emitted the event

  • Optionalbiz_opaque_callback_data?: string

    Arbitrary string included in sent messages

  • Optionalconversation?: ServerConversation

    The conversation object

  • Optionalerror?: 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

  • Optionalpricing?: ServerPricing

    The pricing object

  • raw: PostData

    The raw data from the API

  • status: string

    The message status

  • timestamp: string

    The message timestamp