jsavargas / telethon_downloader

GNU General Public License v3.0
131 stars 35 forks source link

Restart bot from the bot itself, restart pending downloads #62

Open adocampo opened 5 months ago

adocampo commented 5 months ago

I use this bot with extremely caution, because if I send too many links at once, it crashes, that's a PITA, because for example I'm downloading Dragon Ball, and there are a lot of episodes, and I'm downloading episodes which are 6.5GB each, divided in 3 files of 2GB each and a fourth of 500MB. So I need to download in packs of 4 files or the bot crashes at some point.

I wonder if it would be possible to restart pending downloads when the bot restarts, so, no need to go to the source and re-forward the messages once again.

I also wonder if it would be possible to restart the bot itself from the bot, as this can happen when I'm away from keyboard and it would be nice to let the bot restart itself when an exception occurs or let the user restart the bot from the bot.