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

It does not download the image correctly #4

Open
SamratBarai opened this issue Jan 13, 2025 · 0 comments
Open

It does not download the image correctly #4

SamratBarai opened this issue Jan 13, 2025 · 0 comments

Comments

@SamratBarai
Copy link

Describe the bug
When I run the program it doesn't download the images from the post, instead returns a weird file with no content in it.

To Reproduce
Steps to reproduce the behavior:

  1. Run the main.py file
  2. Select media download
  3. Enter a Telegram post url with images
  4. You will find that the file is not getting downloaded

Expected behavior
It should have downloaded the images in the post, but it doesn't work.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows[e.g. iOS]
  • Browser Brave[e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
I have wrote a possible fix. That is, remove the time part from the image name and add a "." at the start of the filepath, this ensures that a new file is created and the received content is written to the file correctly.

I have also created another program that has this functionally (Can be found at TeleScrapper.

Thank you

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

1 participant