Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix order on progressCallback params #551

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

skinnyfads
Copy link

Currently the order of the progressCallback params while downloading media is as follows: total, downloaded

image

But when we run code like this to check what's in total and downloaded:

await message.downloadMedia({
  progressCallback(total, downloaded) {
    console.log({ total, downloaded });
  },
});

We will get the following result:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant