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

    Type Alias ServerStatusPayload

    ServerStatusPayload: {
        biz_opaque_callback_data?: string;
        id: string;
        parent_recipient_user_id?: string;
        recipient_id?: string;
        recipient_type?: "individual" | "group";
        recipient_user_id?: string;
        status: ServerStatus;
        timestamp: string;
    } & (
        | {
            conversation?: ServerConversation;
            errors: undefined;
            pricing: ServerPricing;
        }
        | { conversation: undefined; errors: [ServerError]; pricing: undefined }
    )

    Type Declaration

    • Optionalbiz_opaque_callback_data?: string
    • id: string

      The message's ids

    • Optionalparent_recipient_user_id?: string

      Will be set to the user’s parent BSUID if you have enabled parent BSUIDs

    • Optionalrecipient_id?: string

      Will be set to the user’s phone number, if you sent the message to the user’s phone number. Will be set to the group ID, if you sent the message to a group. Will be omitted if you sent the message to the user’s BSUID or parent BSUID.

    • Optionalrecipient_type?: "individual" | "group"

      If the recipient is a user or a group, defaults to "individual"

    • Optionalrecipient_user_id?: string

      Will be set to the user’s BSUID or parent BSUID, if you sent the message to the user’s BSUID or parent BSUID. Otherwise, it will be omitted. (Mini rant: WHY OMIT IT!!!!????)

    • status: ServerStatus

      The message's status

    • timestamp: string

      The message's timestamp