Skip to content

It does not download the image correctly #4

Description

@SamratBarai

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions