how to use?
install telethon and...
get api code for your account from my.telegram.org
create a channel and put its id in script
user_id is your id (if you are not using your main account)
to save a file you have to first send its name to that channel. started with "-/" like -/name
and if it is a pdf it will be saved by the name of name.pdf
you can put it in directories too. like -/folder/name
than send the file itself
note: if you remove/rename the file (or its name) it will be renamed/removed!
note: when you create the channel. send a text message first. than send names and files. this message(first message) will be used to show the downloading proceسs
in this example i've used nginx root directory to save files into and be able to download them directly