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

DownloadMedia function downloads only 512kb of file #45

Closed
AnjanaMadu opened this issue Jun 6, 2023 · 8 comments
Closed

DownloadMedia function downloads only 512kb of file #45

AnjanaMadu opened this issue Jun 6, 2023 · 8 comments

Comments

@AnjanaMadu
Copy link
Collaborator

I would like to report a bug in the DownloadMedia function of gogram, the Telegram MTProto library. Currently, the function is not functioning as expected, as it only downloads a maximum of 512kb of the file instead of the entire file.

Expected Behavior:
When utilizing the DownloadMedia function, I anticipate that it will download the complete file without any limitations on the file size.

Actual Behavior:
However, the function seems to be limited to downloading only 512kb of the file, regardless of the file's actual size. This behavior prevents users from retrieving the complete file content.

Steps to Reproduce:
To reproduce the issue, follow these steps:

  1. Initialize the gogram library and establish a connection to the Telegram API.
  2. Use the DownloadMedia function to download a file larger than 512kb.
  3. Observe that the function only retrieves 512kb of the file, leaving the remaining content inaccessible.

Expected Output:
The DownloadMedia function should be able to download the entire file, regardless of its size. Users should be able to retrieve the complete content of the requested media.

Additional Information:

  • Version of gogram library: idk
  • Operating System: Windows 10 Pro 64-bit (10.0, Build 19045) (19041.vb_release.191206-1406)

This issue significantly affects users who rely on the DownloadMedia function to retrieve files from Telegram. It would be greatly appreciated if the bug could be addressed, allowing for seamless downloading of files of any size.

Please let me know if any further information or clarification is needed.

@AnjanaMadu
Copy link
Collaborator Author

@AnjanaMadu @RoseLoverX Hi

@TAMILVIP007
Copy link

@AnjanaMadu

@AmarnathCJD
Copy link
Owner

@AnjanaMadu Omfg will take a look

Repository owner deleted a comment from TAMILVIP007 Jun 6, 2023
@TAMILVIP007
Copy link

@AnjanaMadu

@AmarnathCJD
Copy link
Owner

@TAMILVIP007 Give repocucable code cuz I can't reproduce

@AnjanaMadu
Copy link
Collaborator Author

@AmarnathCJD dont be lazy.

@RoseLoverX
Copy link
Collaborator

@AnjanaMadu Ok noted

@AnjanaMadu
Copy link
Collaborator Author

Bro has finally fixed the problem. Appreciate it!!

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

No branches or pull requests

4 participants