telegramdesktop / tdesktop

Telegram Desktop messaging app
https://desktop.telegram.org/
Other
25.98k stars 5.15k forks source link

[Feature Request] Does it really needs to be necessary to redownload the whole media again while exporting chat history in different method? #24977

Open eAlexandrohin opened 2 years ago

eAlexandrohin commented 2 years ago

Is your feature request related to a problem?

As the title says, does it really? No, obviously. It is a waste of time, storage and most importantly internet traffic, which leads to waste of money. And that's big, you know.

So, let's get to the point.

When you export your chat history either HTML/JSON format with set to download all the media, it always has the same file system/structure, besides the CSS and JS. Voice messages are always in voice_messages folder, photos in photos with the same filenames and so on. And that's comes in handy! When you exported your history as HTML with all media downloaded, you could've just export one JSON file, you may think - well, no. I checked it. It just returns:

"file": "(File not included. Change data exporting settings to download.)",

And that's every time any media files should be taken the place.

Describe the solution you'd like

If you exporting in different method and chose the same folder (it does not need to remeber the folder), where other method's data saved, it would check if it already has the file and would not redownload again. Right now, it does not do that, I checked it, it redowloads again every single time.

Or just make an check mark, when JSON method is selected, which would be called: "Only JSON". And with this check mark set, it would generate JSON with actual path, like if it is was already downloaded, instead of automated placeholder.

Describe alternatives you've considered

Why even split the methods? Why can't we generate JSON along with HTML and vice versa at the same time, in the first place, if it has the same file structure?

Would love to know answer to this question. Saw the the #5104 and the commit, but did not deep dive into it.

Additional context

2022-08-23_05-18

squromiv commented 2 years ago

4968 related issue.

It looks really crazy - to redownload all existed files. I also need the feature of skipping them during exporting in HTML.

RealMoAG commented 1 year ago

I am actually trying to export a chat history and I already have all of its files downloaded. the total size of files is approx. 130 GBs.

now when exporting the chat I have to re-download all of the files not only that, I am limited to the normal user download speed and I am subbed to the telegram premium subscription.

Hopefully someone looks into this

alexanderjacuna commented 2 months ago

Honestly really surprised this feature hasn't gotten more traction. Has this enhancement been approved/denied in another issue that I am just not finding? Feel like this would be too hard to implement even if imperfect. Think the only way to do this would be some sort of bot enabled on the channel but this requires one to be an admin of the channel.