Skip to content

Comments

Fix order on progressCallback params#551

Open
skinnyfads wants to merge 1 commit intogram-js:masterfrom
skinnyfads:master
Open

Fix order on progressCallback params#551
skinnyfads wants to merge 1 commit intogram-js:masterfrom
skinnyfads:master

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