whatsapp-api-js - v6.0.0
    Preparing search index...

    Type Alias OnSentArgs

    type OnSentArgs = {
        held_for_quality_assessment?: boolean;
        id?: string;
        message: ClientMessage;
        offload: typeof offload;
        phoneID: string;
        request: ClientMessageRequest;
        response: ServerMessageResponse;
        to: string;
        type: string;
        Whatsapp: InstanceType<typeof WhatsAppAPI>;
    }
    Index

    Properties

    held_for_quality_assessment?: boolean

    If true, the message send was delayed until quality can be validated and it will either be sent or dropped at this point. Undefined if the message_status property is not present in the response.

    id?: string

    The message id

    message: ClientMessage

    The message object

    offload: typeof offload

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

    phoneID: string

    The bot's phoneID from where the message was sent

    The object sent to the server

    The response from the server

    to: string

    The user's phone number

    type: string

    The message type

    Whatsapp: InstanceType<typeof WhatsAppAPI>

    The WhatsAppAPI instance that emitted the event