3bl3gamer / tg_history_dumper

Exports messages and media from Telegram dialogs, groups and channels
MIT License
64 stars 13 forks source link

Profile Picture Save + Fix Duplicate Problem #12

Closed patrizok closed 2 years ago

patrizok commented 2 years ago

Hello again ;)

To fix this Issue https://github.com/3bl3gamer/tg-history-dumper/issues/9 and adding profile picture save feature, I check duplicate chats while appending and I change pp saving style. To remind you, this pull request fix both Open Issue and makes unneccessary old pull request https://github.com/3bl3gamer/tg-history-dumper/pull/10

I try to watch your comments on old pull request; Added default WrongRespError to switch case. Profile pictures saving a new directory to decrease file count in same folder. Profile pictures saving with timestamps to detect duplicates and skip downloading next time. Detecting duplicate chats algorithm was so complicated before, I do same thing with few lines of code; https://github.com/3bl3gamer/tg-history-dumper/commit/5fdefa47b31dcb800b9bf144d534a937ee8209de#diff-d794c0fcc1a8766d115416f801ed1ea1b6d31c57acaa1f342c7ed9ac084c287fR212 (Line 212)