Change the limits

 //Change the maximum size (bytes) for uploading media (max 70MB)
WPP.conn.setLimit('maxMediaSize',16777216);

//Change the maximum size (bytes) for uploading files (max 1GB)
WPP.conn.setLimit('maxFileSize',104857600);

//Change the maximum number of contacts that can be selected when sharing (Default 5)
WPP.conn.setLimit('maxShare',100);

//Change the maximum time (seconds) of a video status
WPP.conn.setLimit('statusVideoMaxDuration',120);

//Remove pinned conversation limit (only whatsapp web) (Default 3)
WPP.conn.setLimit('unlimitedPin',true);
  • Change the limit of MediaSize

    Parameters

    • key: "maxMediaSize"
    • value: number

    Returns number

     //Change the maximum size (bytes) for uploading media (max 70MB)
    WPP.conn.setLimit('maxMediaSize',16777216);
  • Change the limit of FileSize

    Parameters

    • key: "maxFileSize"
    • value: number

    Returns number

     //Change the maximum size (bytes) for uploading files (max 1GB)
    WPP.conn.setLimit('maxFileSize',104857600);
  • Change the limit of Share

    Parameters

    • key: "maxShare"
    • value: number

    Returns number

     //Change the maximum number of contacts that can be selected when sharing (Default 5)
    WPP.conn.setLimit('maxShare',100);
  • Change the limit of Status Video Duration

    Parameters

    • key: "statusVideoMaxDuration"
    • value: number

    Returns number

     //Change the maximum time (seconds) of a video status
    WPP.conn.setLimit('statusVideoMaxDuration',120);
  • Change the limit of Pin

    Parameters

    • key: "unlimitedPin"
    • value: boolean

    Returns boolean

     //Remove pinned conversation limit (only whatsapp web) (Default 3)
    WPP.conn.setLimit('unlimitedPin',true);