Replace the sequential upload to concurrent upload. and only use one connection at a time
And most of them come from https://github.com/Nekmo/telegram-upload/blob/master/telegram_upload/client/telegram_upload_client.py
I simplified it, only kept the upload function, and made some optimizations.
or you can use https://github.com/xrayw/telegram-upload directly