telegramdesktop / tdesktop

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

[Feature Request] Enable incremental data export #10497

Open giomasce opened 3 years ago

giomasce commented 3 years ago

Is your feature request related to a problem?

I periodically download all my Telegram data on my hard disk to keep a personal archive off-cloud. However, I need to redownload all the data each time, which can take quite some time (I have many videos, images and files on my Telegram account). This also unnecessarily puts stress on Telegram servers, because they have to send again data which I already have.

Describe the solution you'd like

I would like, when I export my Telegram data, to indicate a directory that is populated with the data I got from last export. The Telegram application would check the hashes of the files there and avoid downloading again the files that are already available, saving on time and bandwidth, both for me and for the servers.

Describe alternatives you've considered

For the moment I just download all my data every time, but every time this takes more time and more bandwidth, uselessly.

AhyaH-YHWH commented 3 years ago

Shouldn't copying tdata/user_data folder, and meging it with user_data folder, when you login to same Account

make Telegram just use Old downloaded files? (Telegram Windows)

stale[bot] commented 2 years ago

Hey there!

This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.

Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

giomasce commented 2 years ago

Not lost interest at all!

stale[bot] commented 2 years ago

Hey there!

This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.

Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

giomasce commented 2 years ago

FTR, the user hasn't lost interest. They will never until the issue is solved.

kocane commented 2 years ago

Telegram will certainly cease to exist one day, so it would be nice to be able to have our own archive of all our chats, and the data that comes with it.

I still have chat logs from 2005 because MSN Messenger made it so damn easy.

giomasce commented 2 years ago

Telegram will certainly cease to exist one day, so it would be nice to be able to have our own archive of all our chats, and the data that comes with it.

I still have chat logs from 2005 because MSN Messenger made it so damn easy.

BTW, this is already possible: https://bugs.telegram.org/c/60

Aokromes commented 2 years ago

Telegram will certainly cease to exist one day, so it would be nice to be able to have our own archive of all our chats, and the data that comes with it. I still have chat logs from 2005 because MSN Messenger made it so damn easy.

BTW, this is already possible: bugs.telegram.org/c/60

what they are asking for is INCREMENTAL exports, ie, make full export day 1, make export of changed data day 7, day 14, day 21, day 28, etc. (it can be done on hand way, but they want to do on automatic way)

kocane commented 2 years ago

Telegram will certainly cease to exist one day, so it would be nice to be able to have our own archive of all our chats, and the data that comes with it.

I still have chat logs from 2005 because MSN Messenger made it so damn easy.

BTW, this is already possible: https://bugs.telegram.org/c/60

True but like you said, it's halfway useless to me if it's not at least incremental. Ideally something that could be scheduled.

SpL1Ne commented 2 years ago

(it can be done on hand way,

Well technically yes, but actually no.(c) Even if you want to export chat history for last 7 days, telegram still going through FULL chat history. So basically its useless.

santanoce commented 2 years ago

+1 for this! Alternatively, it would be nice to have the possibility to choose specific data ranges to download, like in the "Export chat" feature. It would be great both for us and for the Telegram servers.

jk-85 commented 2 years ago

I want this incremental export-feature too! This will save huge amounts of bandwidth!

VetaLioSTV commented 1 year ago

Agreed, very useful feature!

Doprintityourself commented 11 months ago

Since it floods my hard discs with again and again full backups that I cannot combine please implement the incremental Data export feature soon. Every backup of huge or old channels does create incredible data traffic and wasted space on hard discs +1!

scarlion1 commented 10 months ago

TelegramSuggestion#32967 Incremental data export backup

ThatCoffeeGuy commented 10 months ago

Definitely need to see this. Very inefficient that I can only export ALL of my groups and channels without even being able to select a from - to date interval. I'll need to download 250GBs+ from telegram every month. Or do it completely manually, select groups one by one and add a custom date. Either way, it's quite painful..

ThatCoffeeGuy commented 9 months ago

Any other options around?

scarlion1 commented 9 months ago

@ThatCoffeeGuy I've been using https://github.com/knadh/tg-archive for a bit now and like it.  It connects via API and does incremental sync to a sqlite database which can then be read by various other apps, or use the build function to create a browsable webpage of the collected data.  I don't think it quite captures all the info a JSON export from Telegram does, but I think that could be accomplished by adding the right code.