guigo613 / alternative-wa-version

6 stars 2 forks source link

Alternative wa-version

Sponsor

This repository contains an alternative version of WhatsApp, focused on fixing the issue of videos not being sent correctly to the API.

Features

How to Use

  1. Copy the file found in this repository (likely a file fixing the video sending issue) to the correct location within the whatsapp-web.js project, according to their API structure. This may involve replacing or adding files in the appropriate directories of the whatsapp-web.js project.

  2. In your code, when creating an instance of WhatsApp Web JS API, pass the webVersion: "2.2412.54v2" parameter in the constructor:

    const { Client } = require('whatsapp-web.js');
    
    const client = new Client({
        webVersion: "2.2412.54v2"
    });

    Ensure to replace "2.2412.54v2" with the specific version you need to use. For more information, refer to the WhatsApp Web JS API.

  3. Utilize the WhatsApp Web JS API as needed in your project, leveraging the fix or enhancement provided by the file added to the whatsapp-web.js project.

  4. Contributing

Feel free to contribute to this project! If you encounter any issues or have an idea for a new feature, please open an issue or submit a pull request.

Contact

For more information, contact Guilherme via guigo613@gmai.com.