I am using https://github.com/LonamiWebs/Telethon/ to send a file to TG, when sending a 400mb file it takes about ~10 minutes, although my internet speed is 100 megabits, when sending I indicated part_size_kb = 512, there are some ideas?
So that data decryption is done in C and not in Python (much faster)
pip install cryptg